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
If a default value of 0 is specified then it is not generated. I traced it to this line but I do not yet know .hbs if someone wants to take a stab at correcting this.
if !default then there is no default value. This is incorrect as 0 should be able to be a default value. I could argue that null could be a default value as well but beyond the scope here I think.
If a default value of 0 is specified then it is not generated. I traced it to this line but I do not yet know .hbs if someone wants to take a stab at correcting this.
A workaround is provided below.
Lines I believe with logic error:
openapi-typescript-codegen/src/templates/partials/parameters.hbs
Line 5 in a0807fa
and
openapi-typescript-codegen/src/templates/partials/parameters.hbs
Line 25 in a0807fa
if !default then there is no default value. This is incorrect as 0 should be able to be a default value. I could argue that null could be a default value as well but beyond the scope here I think.
example:
'limit' would be generated with a default value of 25 but 'page' would not have a default value.
the workaround would look like this
The text was updated successfully, but these errors were encountered: