-
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
Query String in Paths #2438
Comments
The phase path is based on the RFC3986 definition. Therefore, paths can't contain query parameters. |
Is this something that should be made more explicit in the specification? When reading the specification regarding the paths object it states |
I think you're overlooking the distinction between paths and query strings, which is pretty explicit in RFC3986. The path stops where the query string starts; even if a request contains query strings, they are not considered part of the path. The description of the paths object in the specification is about paths only; it should not be understood to apply to query strings at all. Your statement about "paths which only differentiate in their query params," confuses the two concepts. Two paths which only differentiate in their query params would be one and the same path, not two different paths. |
In
The key word is templated. The guidance refers to paths such as Closing, as the spec currently as written conveys the intent. |
The spec doesn't seem to define, if query strings are allowed in paths or not.
According to the docs on swagger.io (section
Query String in Paths
) this is not allowed.There are some related issues that doesn't seem to have a definitive answer either, e.g. #123.
Are there official specs regarding this problem?
The text was updated successfully, but these errors were encountered: