Skip to content

Clarified path matching #1204

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

Merged
merged 1 commit into from
Jun 15, 2017
Merged

Conversation

webron
Copy link
Member

@webron webron commented Jun 15, 2017

Resolves #1127.


```
/pets/{petId}
/pets/{name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some APIs may use unique pattern regular expressions for the path parameter schema, in which case these are not identical or ambiguous. (Spring @RequestMapping supports patterns in @PathVariable).

Thus, I suggest marking this as potentially ambiguous, but not invalid.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is invalid today. We never discussed differentiation based on the parameter itself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the idea of being able to disambiguate operations based on parameter values. ASP.NET allows it too and I find it unnecessary complexity.

@RobDolinMS RobDolinMS merged commit fdce77f into OpenAPI.next Jun 15, 2017
@RobDolinMS RobDolinMS deleted the path-templating-clarifications branch June 15, 2017 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants