Closed adawalli closed 3 weeks ago
Should have said that I am using@hey-api/openapi-ts@0.45.1
to generate the client and services and "@hey-api/client-fetch@0.1.3"
Hey @adawalli, the addendum is the key part. Pretty sure this is fixed in the latest version of both. Please upgrade and let me know
Description
I've noticed that certain paths formatted with underscores seem to break type generation (but no errors are actually given). There ends up being a mismatch in the "options" generated that doesn't match the search path
The generated types.gen.ts from my provided config below yields the following
I've noticed that the path ends up being
/programs/search/{search_text}
, but in the "path options", we getpath.searchText
(notpath.search_text
)I then see the fetch reaching out to
/programs/search/%7Bsearch_text%7D
search_text
is being hard coded (well url encoded) instead of passing in the actual variable. I'm able to fix this by manually patching'/programs/search/{search_text}
to'/programs/search/{searchText}
OpenAPI specification (optional)
Configuration
System information (optional)
No response