-
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
Proposal: make pathItem oneOf object, array #487
Comments
FWIW, as voiced in other tickets, I'm pretty much against the usage of |
As opposed to what @webron is against, we've merged the above constructs for 3.0. Closing this. |
@fehguy Where can I see this change manifested? I've look through the 3.0 spec on the OpenAPI.next branch, but don't see anything obvious related to this. In #487, it is proposed that the pathItem definition be changed to use What am I missing? |
The Swagger 2.0 schema defines pathItem as an object.
If either an object or an array were supported via
oneOf
oranyOf
, all of the assorted requests about how to handle query string params or overloading of endpoint behavior could be dealt with in one shot.This could be added to 2.0 without breaking backwards compatibility, and seems as though it would require only minor tooling changes. (I say this having gone through swagger-codegen pretty thoroughly.)
The text was updated successfully, but these errors were encountered: