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
Currently, when a class is being generated, any dateTime values can not be null. It will replace the value with undefined instead. This means that you can not pass null as a value to any property that is part of a nullable class.
Bug Report Checklist
Description
Currently, when a class is being generated, any
dateTime
values can not be null. It will replace the value withundefined
instead. This means that you can not pass null as a value to any property that is part of a nullable class.openapi-generator version
7.12.0
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
Generation Details
cli command:
Or with docker:
Possible offending file:
openapi-generator/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache
Lines 142 to 147 in a7159f6
Steps to reproduce
Generate a class with a
dateTime
property that is nullable:Related issues/PRs
Might be related? #11307
Suggest a fix
Expected result (somewhat like seen here):
Current result (as seen here)
The text was updated successfully, but these errors were encountered: