Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jsonschema for validation #930

Closed
patrickkwang opened this issue Apr 25, 2019 · 1 comment · Fixed by #1455
Closed

Use jsonschema for validation #930

patrickkwang opened this issue Apr 25, 2019 · 1 comment · Fixed by #1455

Comments

@patrickkwang
Copy link
Contributor

A JSON version of the OpenAPI 3.0 specification is now available:
OAI/OpenAPI-Specification@6d17b63
One can validate against this using jsonschema instead of using openapi_spec_validator, here:
https://github.com/zalando/connexion/blob/master/connexion/spec.py#L227
In my experience, both work but jsonschema produces more useful error messages.

@rafaelcaricio
Copy link
Collaborator

Hi @patrickkwang,

This seems like an interesting idea since we would possibly be able to remove one dependency. Would you be interested in baking a PR with this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants