Runtime API validation
openapi-core
Validate live HTTP requests and responses against an OpenAPI document inside your Python web application.
Open openapi-corePython OpenAPI
Three focused libraries — openapi-core, openapi-spec-validator, and openapi-schema-validator — covering runtime validation, document validation, and schema validation.
openapi-core
Validate live HTTP requests and responses against an OpenAPI document inside your Python web application.
Open openapi-coreopenapi-spec-validator
Verify that an OpenAPI document conforms to the specification — ideal for CI lint steps and tooling.
Open openapi-spec-validatoropenapi-schema-validator
Validate JSON instances against OpenAPI Schema Objects with full draft-aware support.
Open openapi-schema-validatorThe Python OpenAPI projects are deliberately scoped so each library does one thing well. They are designed to compose, not to overlap.
openapi-core enforces request and response contracts inside your application using your OpenAPI document.
openapi-spec-validator checks the OpenAPI document itself against the specification, catching mistakes before they ship.
openapi-schema-validator validates JSON instances against OpenAPI Schema Objects with the OpenAPI JSON Schema dialect.