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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
We added a nullable enum attribute to request body of a function in our API. OpenAPI generator generates typescript-axios client code which omits information that the attribute is nullable, so the client must provide enum value which is undesirable, because we want to keep using null for that attribute by default and use enums only in special cases required by a new feature.
Bug Report Checklist
Description
We added a nullable enum attribute to request body of a function in our API. OpenAPI generator generates typescript-axios client code which omits information that the attribute is nullable, so the client must provide enum value which is undesirable, because we want to keep using
null
for that attribute by default and use enums only in special cases required by a new feature.OpenApiSpecification:
Generated code:
What we actually want:
openapi-generator version
7.1.0
OpenAPI declaration file content or url
Generation Details
Related issues/PRs
Suggest a fix
I think that isNullable condition is missing inside
#isEnum
condition inat
openapi-generator/modules/openapi-generator/src/main/resources/typescript-axios/modelGeneric.mustache
Line 20 in 8911740
The text was updated successfully, but these errors were encountered: