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 | |
|---|---|
| Spectral | Fexible JSON/YAML linter |
| vacuum | OpenAPI and Swagger linter |
| Redocly | All-in-one OpenAPI utility |
| Cherrybomb | Audit, validate, run API tests |
| Zally | Minimalistic, simple-to-use API linter |
| oasdiff | Validate OpenAPI specifications and detect breaking changes |
| Rate My OpenAPI | Improve the quality of your OpenAPI specifications |
| OpenAPI Validator | Configurable and extensible validator/linter |
| OpenAPI Spec validator | Validates OpenAPI Specs |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.