openapi-schema-validator
OpenAPI schema validation for Python
Install
openapi-schema-validator on PyPI
pip
pip install openapi-schema-validatoruv
uv add openapi-schema-validatorpoetry
poetry add openapi-schema-validatorPackage facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — jsonschema, jsonschema-specifications, pydantic, pydantic-settings, referencing, rfc3339-validator |
| Maintenance | actively maintained — 108 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: openapi_schema_validator-0.9.0-py3-none-any.whl
Keywords: openapi, swagger, schema
About openapi-schema-validator
from the package's own PyPI description — quoted content, verbatim
openapi-schema-validator
.. image:: https://img.shields.io/pypi/v/openapi-schema-validator.svg :target: https://pypi.org/project/openapi-schema-validator/ .. image:: https://github.com/python-openapi/openapi-schema-validator/actions/workflows/python-tests.yml/badge.svg :target: https://github.com/python-openapi/openapi-schema-validator/actions .. image:: https://img.shields.io/codecov/c/github/python-openapi/openapi-schema-validator/master.svg?style=flat :target: https://codecov.io/github/python-openapi/openapi-schema-validator?branch=master .. image:: https://img.shields.io/pypi/pyversions/openapi-schema-validator.svg :target: https://pypi.org/project/openapi-schema-validator/ .. image:: https://img.shields.io/pypi/format/openapi-schema-validator.svg :target: https://pypi.org/project/openapi-schema-validator/ .. image:: https://img.shields.io/pypi/status/openapi-schema-validator.svg :target: https://pypi.org/project/openapi-schema-validator/
About
openapi-schema-validator is a Python library that validates schemas against:
- `OpenAPI Schema Specification v3.0...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Validates data against OpenAPI schema specifications (3.0, 3.1, and 3.2) using jsonschema under the hood, with support for multiple validator classes and configurable reference resolution.
Low friction: pure Python wheel with six stable runtime dependencies (jsonschema, pydantic, referencing, and format validators). Actively maintained as of April 2026 with recent commits.
BSD-3-Clause permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Usage
pip install openapi-schema-validator
from openapi_schema_validator import validate
schema = {"type": "object", "properties": {"name": {"type": "string"}}}
validate({"name": "John"}, schema)
Requires Python 3.10 or later (supports up to 3.14).
Verdict: A well-maintained, low-friction validator for OpenAPI schemas across all three major versions. No known vulnerabilities, permissive licensing, and active development make it a solid choice for API contract testing and validation workflows.
Needs verification
- Performance characteristics under high-volume validation or with very large schemas
- Compatibility with custom jsonschema validators or extensions beyond those documented
Similar packages
permissive · top 1,000 on PyPI
fastjsonschemapermissive · top 1,000 on PyPI
argparsepermissive · top 1,000 on PyPI
openapi-pydanticpermissive · top 1,000 on PyPI
schemapermissive · top 1,000 on PyPI
jsonschema-pathpermissive · top 1,000 on PyPI
jsonschema-specificationspermissive · top 100 on PyPI
referencingpermissive · top 100 on PyPI
dacitepermissive · top 1,000 on PyPI
mashumaropermissive · top 1,000 on PyPI