Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork68
OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.
License
python-openapi/openapi-spec-validator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
OpenAPI Spec Validator is a Python library that validates OpenAPI Specs against theOpenAPI 3.0.0 specification. The validator aims to check for full compliance with the Specification.
$ pip install openapi-spec-validatorValidate spec:
fromopenapi_spec_validatorimportvalidate_specvalidate_spec(spec)
You can also validate spec from url:
fromopenapi_spec_validatorimportvalidate_spec_urlvalidate_spec_url('http://example.com/openapi.json')
If you want to iterate through validation errors:
fromopenapi_spec_validatorimportopenapi_v3_spec_validatorerrors_iterator=openapi_v3_spec_validator.iter_errors(spec)
Copyright (c) 2017, Artur Maciag, All rights reserved.Apache v2
About
OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.
Topics
Resources
License
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.