carlansley / swagger2

Loading, parsing and validating requests to HTTP services based on Swagger v2.0 documents
MIT License
25 stars 17 forks source link

Allow for ambiguous matching #25

Closed bbeeler-flowhub closed 5 years ago

bbeeler-flowhub commented 5 years ago

The somewhat greedy matching in the compiler when matching against paths defined in the swagger document, required unique paths. The swagger2 documentation is somewhat light in this area, however it was directly addressed in the swagger3 documentation. Swagger Documentation on Path Objects

Ex. /pets/{petId} /pets/mine The matching will return an array with length 2

Under v1.0.3 - a 404 After Change routes are allowed to continue up the stack

bbeeler-flowhub commented 5 years ago

Happy to help. I pulled those files back from your master@1.0.3

carlansley commented 5 years ago

1.0.4 published