hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client

Home Page:https://heyapi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

CodeWitchBella opened this issue · comments

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

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

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.

Ya, you snooze you lose 😀