openapi-spec-validator
openapi-spec-validator copied to clipboard
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.
The main reason there is a custom loader in this library is to replace integer keys into strings. However, the `json` library from python could handle this for you. It...
Hey, we are using custom checkers, as connexion suggests [here](https://connexion.readthedocs.io/en/latest/cookbook.html?highlight=%40draft4_format_checker#custom-type-format). For example, this is our currency checker: ``` @draft4_format_checker.checks("iso-4217") def validate_currency(to_validate: Optional[str]) -> bool: """Validation for iso-4217 currency.""" return to_validate...
Hello @p1c2u, thanks for your library. I've recently performed a scheduled dependencies upgrade and encountered the following warning: ``` ... /Users/.../lib/python3.9/site-packages/jsonschema/validators.py:190: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and...
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. -...
The code appears to enter into a recursive loop within jsonschema 4.0.1, a work around for now is reverting back to jsonschema 3.2.0 and the hang no longer happens. `Package...
If a schema is invalid, it will cause a oneOf to fail instead of failing on its own. I discovered this while thinking `optional` was a valid thing. The below...
Hi, after updating to the latest release I had a strange error with schemas. **Swagger example** ```yaml /couriers/{courierIdentifier}: get: description: 'description text' tags: - Couriers parameters: - $ref: '#/components/parameters/courierIdentifierInPath' responses:...
Based on draft https://github.com/OAI/OpenAPI-Specification/pull/2474
I get: ```json {'in': 'query', 'name': 'bar', 'example': '1', 'examples': {'1': {'summary': '1', 'value': '1'}, '2': {'summary': '2', 'value': '2'}}, 'schema': {'type': 'string'}} is not valid under any of the...
Hi! According to the Swagger documentation about [Query String in Paths](https://swagger.io/docs/specification/paths-and-operations/) > Query string parameters must not be included in paths. They should be defined as query parameters instead but...