Replies: 2 comments
-
@guizoxxv there's a few things to unpack in here:
This leads back to one key point: An OpenAPI is not a feature complete JSON Schema document, so you cannot use all the features of JSON Schema throughout. You'll get inconsistent results. I think, but am not sure, that one day OpenAPI will also be a complete JSON Schema document, but it isn't at 3.0.1. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm assuming from the lack of response that the answer was accepted as it seems pretty thorough. Closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
There are two things that I would like to have in OpenAPI that the seems not to be possible according to the documentation. Strangely, if I try to implement them, the result HTML is rendered as I would expect, even though schema validation errors also appear.
Example:
Example:
Also strange, when executing the same code in a local swagger-ui project (
npm run dev
) OR with a local static files server (I used Caddy and http-server) it works and doesn't show any schema validation errors.Can someone help me understand this behaviour? Here is a complete example:
repo: https://github.com/guizoxxv/open-api-example
html: https://guizoxxv.github.io/open-api-example/
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions