OpenAPI Spec Validator – validate OpenAPI specifications

OpenAPI Spec Validator is a Python application for checking that API descriptions conform to the OpenAPI specification. It can identify invalid structures, incorrect schema definitions and other problems that would prevent an API description from complying with the standard.

The software provides a command-line interface, an importable Python library and integration with the pre-commit framework. This makes it suitable for validating API specifications during development, from automated build systems or as part of a larger application.

Unlike a style-oriented linter such as Spectral, OpenAPI Spec Validator concentrates primarily on specification compliance rather than enforcing organisational naming conventions and API design preferences.

The project supports Swagger definitions as well as modern OpenAPI documents, including newer JSON Schema functionality. It can read local files or input supplied through standard input.

This is free and open source software.

Key Features

  • Validate Swagger and OpenAPI documents against their respective specifications.
  • Identify schema errors, missing required fields and invalid structures.
  • Support for newer OpenAPI specification revisions and their associated JSON Schema capabilities.
  • Command-line interface for validating individual API definition files.
  • Read specifications supplied through standard input.
  • Python library API for integrating validation into applications, scripts and test suites.
  • Pre-commit hook for identifying specification problems before changes are committed.
  • Container-based execution without installing the Python package directly on the host.
  • Exception-based validation API, allowing applications to catch and process validation failures.
  • Integration with continuous integration pipelines and automated testing workflows.

Website: github.com/python-openapi/openapi-spec-validator
Support:
Developer: Artur Maciag and contributors
License: Apache License 2.0

OpenAPI Spec validator is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

OpenAPI Linters
SpectralFexible JSON/YAML linter
vacuumOpenAPI and Swagger linter
RedoclyAll-in-one OpenAPI utility
CherrybombAudit, validate, run API tests
ZallyMinimalistic, simple-to-use API linter
oasdiffValidate OpenAPI specifications and detect breaking changes
Rate My OpenAPIImprove the quality of your OpenAPI specifications
OpenAPI ValidatorConfigurable and extensible validator/linter
OpenAPI Spec validatorValidates OpenAPI Specs

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted