Skip to content
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

defaultPathSerializer doesn't url-encode its primitive string params #1596

Open
1 task
maslennikov opened this issue Mar 22, 2024 · 0 comments
Open
1 task
Labels
bug Something isn't working openapi-fetch Relevant to the openapi-fetch library

Comments

@maslennikov
Copy link

Description

After upgrade from v0.8.2 to v0.9.3 I noticed breaking behavior. When passing raw strings as path params, they don't get url-encoded.

Reproduction

console.log(defaultPathSerializer('/hello/{slug}', {slug: '/foo?bar'}))
// output: /hello//foo?bar

Expected result

"/hello/%2Ffoo%3Fbar"

Checklist

@maslennikov maslennikov added bug Something isn't working openapi-fetch Relevant to the openapi-fetch library labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi-fetch Relevant to the openapi-fetch library
Projects
None yet
Development

No branches or pull requests

1 participant