openapi-spec-validator

Validates an entire OpenAPI document against the OpenAPI Specification.

Primary use cases

  • Verify that an OpenAPI document conforms to the OpenAPI Specification
  • Lint OpenAPI documents in CI to catch breaking changes early
  • Use as a building block inside higher-level OpenAPI tooling

Spec coverage

  • Swagger 2.0
  • OpenAPI 3.0
  • OpenAPI 3.1
  • OpenAPI 3.2

Documentation

openapi-spec-validator

Version latestlatest stable

Validates an entire OpenAPI document against the OpenAPI Specification.

Open documentation

Follow-through

Next steps in the docs

Move directly into the part of the documentation that matches your next task, then use the version switcher above if you need a different release line.

Related libraries

These projects commonly pair with openapi-spec-validator when you move from spec authoring to schema validation to runtime enforcement.