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

fetch client: snake_case path arguments get converted to camelCase in types, but not in template string #615

Closed
CodeWitchBella opened this issue May 23, 2024 · 3 comments · Fixed by #616
Labels
bug 🔥 Something isn't working client Client package related

Comments

@CodeWitchBella
Copy link

Description

In the new fetch client (awesome, btw, I like the tree-shakeability), path arguments do not work if specified as directed by types - types expect camelCase, but it only works with snake_case at runtime.

OpenAPI specification (optional)

I think the above is enough to reproduce, let me know if you have any trouble reproducing it and I'll prepare some kind of minimal schema.

Configuration

No response

System information (optional)

No response

@CodeWitchBella CodeWitchBella added the bug 🔥 Something isn't working label May 23, 2024
@mrlubos
Copy link
Member

mrlubos commented May 23, 2024

Do you mind adding a small schema please? I've heard this reported already but I haven't fixed it precisely because no schema was provided. Will help me to debug it faster

@CodeWitchBella
Copy link
Author

I see you fixed this before I could get back to you with the schema 😯

I tried it on my schema and it works, thanks.

@mrlubos
Copy link
Member

mrlubos commented May 24, 2024

Ya, you snooze you lose 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working client Client package related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants