You are here: Home / LBN / Up2date / Big Data / BastionLinux 36 / python3-openapi-schema-validator-0.3.2-1.lbn36.noarch

python3-openapi-schema-validator-0.3.2-1.lbn36.noarch

Package Attributes
RPM  python3-openapi-schema-validator-0.3.2-1.lbn36.noarch.rpm Architecture  noarch Size  35064 Created  2022/11/26 06:36:38 UTC
Package Specification
Summary OpenAPI schema validation for Python
Group Unspecified
License ZPL
Home Page https://pypi.org/project/openapi-schema-validator
Description

About Openapi-schema-validator is a Python library that validates schema against:

OpenAPI Schema Specification v3.0 which is an extended subset of the JSON Schema Specification Wright Draft 00. OpenAPI Schema Specification v3.1 which is an extended superset of the JSON Schema Specification Draft 2020-12.

Installation Recommended way (via pip): $ pip install openapi-schema-validator Alternatively you can download the code and install from the repository: $ pip install -e git+https:/github.com/p1c2u/openapi-schema-validator.git#egg=openapi_schema_validator

Usage By default, the latest OpenAPI schema syntax is expected. To validate an OpenAPI v3.1 schema: from openapi_schema_validator import validate

schema = { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "age": { "type": ["integer", "null"], "format": "int32", "minimum": 0,

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
(python3.10dist(jsonschema) < 5~~ with python3.10dist(jsonschema) >= 4)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(TildeInVersions)  
Provides
python-openapi-schema-validator
python3-openapi-schema-validator
python3.10-openapi-schema-validator
python3.10dist(openapi-schema-validator)
python3dist(openapi-schema-validator)
Obsoletes
python-openapi-schema-validator

Document Actions