-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature Request: inverse function for resolve #98
Comments
Thanks a lot mate!
I think this has broader context and might be related to overall concrete URI Reference / URL matching against the path templates. We need to design an API that would satisfy your simple usecase but would allow to do the more complex matching and handle ambiguities: From that we can inferere following predicates:
Now these predicates still don't solve your request, we need additional match('/pets/mine', [
'/pets/{petId}',
'/pets/mine'
]); => '/pets/mine' Your case can be specialized into: match('/pets/mine', [
'/pets/{petId}',
]); => '/pets/{petId}'
I have to think about this a bit more, but feel about right. |
The isIdentical predicate determines if two paths are identical and thus invalid. Refs #98
Started to work on this - I've introduced |
The isIdentical predicate determines if two paths are identical and thus invalid. Refs #98
Hey there 👋
first off, thanks for all the work you've done on this package, it's awesome!
I would like to request a feature: allow to verify if a given path, e.g.
/api/foobar/123
matches a pathname from the OpenAPI specification, e.g./api/foobar/{id}
. It would be the inverse toresolve
.Does this make sense?
The text was updated successfully, but these errors were encountered: