OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
setting enumPropertyNaming to camelCase reverts the behavior introudced in #18062. However, I'm leaving this issue open because original should not generate invalid code.
Bug Report Checklist
Description
A spec with an empty enum entry no longer generates a valid enum in kotlin code.
openapi-generator version
7.4.0, also 7.5.0
OpenAPI declaration file content or url
Generation Details
will generate this kotlin code:
which has the invalid first entry. Previously this (in 7.3.0) this would generate the following:
with the
eMPTY
entry.here is my
openApiGenerate
taskSteps to reproduce
Run the generation on the yaml.
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/pull/18062
Suggest a fix
Should revert the enum generation changes or provide guidance on fixing the breaking change.