You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-openapi-schema-validator-0.6.2-1.lbn36.noarch

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

Package Attributes
RPM  python3-openapi-schema-validator-0.6.2-1.lbn36.noarch.rpm Architecture  noarch Size  35445 Created  2024/07/01 13:33:24 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
(python3.10dist(jsonschema) < 5~~ with python3.10dist(jsonschema) >= 4.19.1)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
(python3.10dist(jsonschema-specifications) < 2024~~ with python3.10dist(jsonschema-specifications) >= 2023.5.2)  
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