-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
reusable pathitems #2111
Comments
Because of the lack of a reusable component for See https://github.com/OAI/OpenAPI-Specification/pull/1964/files for an open PR attempting to clarify this distinction. We ran out of time to discuss the |
Keen to hear what the current recommendations and best practices are for storing paths externally and referencing them, in order to keep the spec in manageable chunks. |
As of OpenAPI 3.1, [PathItems can be defined in the components section](https://spec.openapis.org/oas/latest.html#componentsObject and referred to there. I think this answers the original question. |
Path item object has a $ref field for referencing an existing path item, however there is no place for holding path items in components. I don't know the correct way to use $ref in a path, but it seems like I should referring to a path item defined for another path?
Please feel free to correct me if I'm wrong.
I saw this topic was discussed in TSC Meeting - January 16th 2020, were any decisions made?
The text was updated successfully, but these errors were encountered: