-
Notifications
You must be signed in to change notification settings - Fork 75
inconsistency between documentation and spec: is paths required? #25
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
Comments
Neither of those is the specification. Not sure if the Documentation was updated to OAS 3.1 but the section you're referring to is true in OAS 3.0 but changed in OAS 3.1. The snippet from the schema is true to OAS 3.1. |
I also noticed that on the next page, https://oai.github.io/Documentation/specification-paths.html, says that "responses" is mandatory in the operations object, neither the spec nor the schema contain this constraint. Have these doc pages been updated for v3.0.3->v3.1.0? |
Apparently, they've not been. As always, the source of truth is always the specs. For reference, https://spec.openapis.org/oas/v3.1.0.html and https://spec.openapis.org/oas/v3.0.0.html (or just https://github.com/OAI/OpenAPI-Specification/tree/main/versions). |
Thanks for pointing this out @karenetheridge - do you have bandwidth to raise a PR to fix these issues? If not, I can. |
I can PR it this weekend. |
in https://github.com/OAI/Documentation/blob/main/specification-structure.md:
But the schema (https://github.com/raw/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.yaml) says:
Which one is correct?
The text was updated successfully, but these errors were encountered: