Open jpenna opened 2 weeks ago
Start a new pull request in StackBlitz Codeflow.
Hi @jpenna, can you try with the experimental parser? I think it might be fixed there https://heyapi.dev/openapi-ts/configuration.html#parser
@mrlubos Will try it Monday!
Hello @mrlubos , I just upgraded to the latest version 0.53.12 and added the option for the parser (it is actually experimental_parser
with underscore, according to the types).
But it is still including the Record<string, unknown>
path: Record<string, unknown> & {
threadId: string;
Thanks for confirming, will fix!
Description
The lib is generating a union with
Record<string, unknown>
for query parameters, which doesn't throw type errors when the query schema changes.never
.I realized it also happens for
body
if it isn't defined (check the sample code). I think it should benever
when it isn't defined.Maybe add a configuration like
--use-never
to default any unset value tonever
.Reproducible example or configuration
Check App.tsx:73
https://stackblitz.com/edit/hey-api-client-fetch-example-ssbzuv?file=src%2FApp.tsx&view=editor
OpenAPI specification (optional)
Use the example above.
System information (optional)
@hey-api/openapi-ts: v0.53.6