You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A brief description of the bug. Provide either a screenshot or the full error message
When we use the --path-params-as-types flag with openapi-typescript to generate types, some post requests(seems to only affect post requests) stop being autocompleted/discovered and shows error: Argument of type '"/example/post-endpoint"' is not assignable to parameter of type 'PathsWithMethod<paths, "post">'.
Without the --path-params-as-types flag, everything works as expected. Only difference I see in generated types is the adjustments to dynamic paths keys: [path: `/example/dynamic/${string}`]:.
Anyone else got same issue or just us?
Reproduction
How can this be reproduced / when did the error occur? Does the issue occur in a specific browser, or all browsers?
Not sure if reproducible in other repos, I guess try to regenerate your types with the --path-params-as-types flag. Will try to test outside our repo to test.
Expected result
I think description covers it's all. (in case it’s not obvious)
Description
A brief description of the bug. Provide either a screenshot or the full error message
When we use the
--path-params-as-types
flag withopenapi-typescript
to generate types, some post requests(seems to only affect post requests) stop being autocompleted/discovered and shows error:Argument of type '"/example/post-endpoint"' is not assignable to parameter of type 'PathsWithMethod<paths, "post">'
.Example(ignore the untyped body):
Without the
--path-params-as-types
flag, everything works as expected. Only difference I see in generated types is the adjustments to dynamic paths keys:[path: `/example/dynamic/${string}`]:
.Anyone else got same issue or just us?
Reproduction
How can this be reproduced / when did the error occur? Does the issue occur in a specific browser, or all browsers?
Not sure if reproducible in other repos, I guess try to regenerate your types with the
--path-params-as-types
flag. Will try to test outside our repo to test.Expected result
I think description covers it's all.
(in case it’s not obvious)
Checklist
The text was updated successfully, but these errors were encountered: