BSD Ports

devel/py-prance 23.6.21.0_2 MidnightBSD

Resolving Swagger/OpenAPI 2.0 and 3.0.0 parser

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

Prance provides parsers for Swagger/OpenAPI 2.0 and 3.0 API specifications in Python. It uses flex, swagger_spec_validator or openapi_spec_validator to validate specifications, but additionally resolves JSON references in accordance with the OpenAPI spec.

Mostly the latter involves handling non-URI references; OpenAPI is fine with providing relative file paths, whereas JSON references require URIs at this point in time.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-prance23.6.21.0_2
FreeBSDdevel/py-prance26.7.19.0
OpenBSDdevel/py-prance26.7.19.0p0
DragonFlydevel/py-prance23.6.21.0
HardenedBSDdevel/py-prance26.7.19.0
GhostBSDdevel/py-prance26.7.19.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}prance

From mports:

cd /usr/mports/devel/py-prance && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}prance>0:devel/py-prance

Dependencies

As this port's Makefile names them.

Build 3

Runtime 5

Build dependencies 3
Run dependencies 5
Required by 1

Configuration

Options name: devel_prance

OptionDefaultDescription
CLIoffCommand-line interface support
FLEXoffUse py-flex as backend
ICUoffUnicode support
OSVonUse py-openapi-spec-validator as backend
SSVoffUse py-swagger-spec-validator as backend
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
prance-23.6.21.0.tar.gz2.798776e+06d8c15f8ac34019751cc4945f866d8d964d7888016d10de3592e339567177cabe
Master sites 1
  • PYPI