-
Notifications
You must be signed in to change notification settings - Fork 197
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
Validate schemas using ex_json_schema #47
Comments
I'd be OK with using It would be great if there was a |
The people over at OpenAPI and at JSON Schema want to converge their schema specs eventually. To me it makes more sense to do a conversion to (and from?) JSON Schema before validation. In which module do you think this conversion step should go? |
@moxley why is this labeled as |
@fenollp: The By the way, we set up a private channel in the Elixir Slack for discussions. Would you be willing to join us there? You've already been added. |
Looks like this can be achieved when OpenApi 3.1 is released. |
Any chance this library will be updated to OpenAPI 3.1? |
Following on #23 (and my attempt at solving it: #42), I have been instead using the really good
ex_json_schema
.Here is the code I am using:
There needs to be a translation step first though, to rewrite
nullable: true
and such incompatibilities of OpenAPIV3 schemas with JSON Schema Draft-04.Would you be open to use
ex_json_schema
validators instead of the current ones in this lib?Where do you think this translation step should be: within this lib or within
ex_json_schema
?Thanks
The text was updated successfully, but these errors were encountered: