A utility designed as a pre-commit OpenAPI file validator:
oval --help
Use it by adding it to your repository's .pre-commit-config.yaml
file:
# Basic OpenAPI Validator - repo: https://github.com/informaticsmatters/openapi-validator rev: '1.0.0' hooks: - id: im-oval files: app/openapi/openapi.yaml
The OpenAPI validator is published on PyPI and can be installed from there:
pip install im-openapi-validator
This is a Python 3 utility, so try to run it from a recent (ideally 3.10) Python environment.
- Report bugs, suggest features or view the source code on GitHub.