Closed Mitchell3514 closed 9 months ago
Hi @Mitchell3514, I'm facing the same issue in one of my projects. Since you've added some tests, I went ahead and created a pull request to your fork: https://github.com/Mitchell3514/express-openapi-validator/pull/1 to fix this issue. Could you please update your fork and create a pull request to this library so @cdimascio can take a look?
Describe the bug As per the FAQ, we should be able to define paths that end on a path parameter acting as a wildcard/use URI format.
However, when we introduce a second path parameter, the middleware always throws an error and the server returns status code
500
.To Reproduce
RFC-6570
. For example:Actual behavior The middleware always responds with
500 - Internal Server Error
Expected behavior The middleware validates the internal path parameter as per usual and parses the wildcard parameter at the end.
Examples and context Original use-case: #457 implemented in #491 I have added a commit to my fork that includes tests which reproduce this issue: https://github.com/Mitchell3514/express-openapi-validator/commit/0c5531869055500140dcbb6aee5da98b9c643b2a