-
Notifications
You must be signed in to change notification settings - Fork 43
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
Path parameters not unescaped correctly #88
Comments
Hey @gimenete, i've just published the new v1.0.0 release that fixes this issue, i'm now using the |
Hey @G4brym I think this is still an issue for path params. I see that |
@gimenete path parameters are parsed on itty-router, i've openned a pull request there is the required changes |
Thanks @G4brym - taking a look now! |
Not really sure if it's a bug with
itty-router
oritty-router-openapi
but it affectsitty-router-openapi
users.Given an endpoint like this (using
.original
for simplicity):Making a query to
/something/user%3A1234
returns the following response:id: user%3A1234
. While it should beid: user:1234
.Just to make sure my assumption is correct I made an express application with a similar endpoint and the response is correct (
id: user:1234
):My workaround is to decode the full URL before passing it to the library. Like this:
Not sure if it's the best approach.
The text was updated successfully, but these errors were encountered: