OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
In the generated Go client, specific values of enums are declared at package scope using only the value name. This causes name collisions between enums with overlapping value names.
Description
In the generated Go client, specific values of enums are declared at package scope using only the value name. This causes name collisions between enums with overlapping value names.
openapi-generator version
4.1.0-SNAPSHOT
OpenAPI declaration file content or url
This results in two package-level variables both named "SYSLOG" causing build failure.
Command line used for generation
Steps to reproduce
Generate code for a schema with the two models above, and try to build it.
Suggest a fix
Possibly prefix the enum value name with the enum type name, e.g.
CsrUse_SYSLOG
.