-
Notifications
You must be signed in to change notification settings - Fork 27
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
Convert OpenAPI schema "example" to "examples" array #396
Comments
@kalxas I'll update all instances of "example" to be "examples'. I just checked the JSON Schema specification and it seems that the correct key name is "examples". |
@pvretano thank you |
OK ... the change from "example" to "examples" causes validation of the example openAPI files to fail so I have to undo these changes. For example, when I changes all instances of "example" in |
ok, let's revert then |
Interesting, especially given that OpenAPI 3.1 deprecates example in favor of examples:
|
It has been reported that some tools that convert OpenAPI schemas to JSONSchema have an issue converting example to examples.
ESA-EarthCODE/open-science-catalog-metadata#233 (comment)
ESA-EarthCODE/open-science-catalog-metadata#233 (comment)
ESA-EarthCODE/open-science-catalog-metadata#233 (comment)
ESA-EarthCODE/open-science-catalog-metadata#233 (comment)
Should we consider switching the YAML schema
example
toexamples
to avoid doing it manually during conversion?The text was updated successfully, but these errors were encountered: