$npx skillfedfor your agent

openapi-spec-validator

OpenAPI 2.0 (aka Swagger) and OpenAPI 3 spec validator

Worth itPyPI LibrariesReleased May 202647.1M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — openapi_spec_validator-0.9.0-py3-none-any.whl
v0.9.0 · released 2026-05-20 · Python <4.0,>=3.10 · 6 runtime deps: jsonschema, jsonschema-path, lazy-object-proxy, openapi-schema-validator, pydantic, pydantic-settings

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a concrete problem for anyone working with OpenAPI specifications. The permissive Apache-2.0 license poses no restrictions. Install it if you need to validate OpenAPI specs in CI, pre-commit workflows, or application code.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later (supports 3.10 through 3.14).
  • Low install friction with a pure-Python wheel distribution.
  • Active maintenance with a recent release (86 days ago) and ongoing commits.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.

last release 2026-05-20 (86 days) · last repo commit 2026-08-10 · 407 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 47,111,997 downloads/mo, #603 on PyPI

Verify before relying

from openapi_spec_validator import validate
from openapi_spec_validator.readers import read_from_filename

spec_dict, base_uri = read_from_filename('openapi.yaml')
validate(spec_dict)
  • Whether the optional jsonschema-rs backend provides meaningful performance gains for typical spec sizes.
  • How the resolved-path cache tuning (OPENAPI_SPEC_VALIDATOR_RESOLVED_CACHE_MAXSIZE) affects validation speed on large or deeply nested specs.
Same gist for agents: .md · .json

What it is and what it does

OpenAPI Spec Validator checks whether your API specifications conform to the OpenAPI standard (Swagger 2.0, OpenAPI 3.0, 3.1, or 3.2). It works as a standalone CLI command, a Python library you can call from code, or a pre-commit hook to catch spec violations before they reach your repository. The validator uses jsonschema and pydantic under the hood to perform schema compliance checks and will raise an OpenAPIValidationError if required fields are missing or values violate the spec.

You can run it directly on a YAML or JSON file, pipe specs through stdin, or integrate it into your Python application's validation pipeline. It supports performance tuning via environment variables for cache sizing and schema validator backend selection, making it suitable for both small projects and large-scale API documentation workflows.

Use it for

  • Validate API specs in CI/CD pipelines before deploying API documentation or code generation.
  • Enforce OpenAPI compliance in pre-commit hooks to prevent invalid specs from being committed.
  • Check spec validity programmatically in Python applications that generate or consume OpenAPI definitions.
  • Audit existing API specifications for compliance with OpenAPI 3.0, 3.1, or 3.2 standards.
  • Integrate spec validation into API gateway or documentation tooling workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a concrete problem for anyone working with OpenAPI specifications. The permissive Apache-2.0 license poses no restrictions. Install it if you need to validate OpenAPI specs in CI, pre-commit workflows, or application code.

Install

openapi-spec-validator on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release (86 days ago) and ongoing commits. Depends on well-established schema validation libraries (jsonschema, pydantic) with no exotic system requirements.

Requires Python 3.10 or later (supports 3.10 through 3.14).

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

from openapi_spec_validator import validate
from openapi_spec_validator.readers import read_from_filename

spec_dict, base_uri = read_from_filename('openapi.yaml')
validate(spec_dict)

Verify before relying

  • Whether the optional jsonschema-rs backend provides meaningful performance gains for typical spec sizes.
  • How the resolved-path cache tuning (OPENAPI_SPEC_VALIDATOR_RESOLVED_CACHE_MAXSIZE) affects validation speed on large or deeply nested specs.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
jsonschemajsonschema-pathlazy-object-proxyopenapi-schema-validatorpydanticpydantic-settings
MaintenanceActively maintained 86 days since the last release
Last repo commit
First released
Downloads47,111,997 / month, #603 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: openapi_spec_validator-0.9.0-py3-none-any.whl

Tags

Capabilities
openapi spec validationswagger schema validatoropenapi 3.0 validatorapi specification checkeropenapi compliance testingyaml schema validationopenapi linter
Topics
api-validationopenapischema-validation
PyPI keywords
openapiswaggerschema

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “openapi 3.0 validator”

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also openapi-schema-validator · openapi3 · prance · pyvalid · swagger-spec-validator · openapi-core · aiopenapi3 · flex · bravado-core · openapi-schema-pydantic