I want to upgrade openapi-generator-maven-plugin from 4.x to 7.12.0. There is one change in the generated enum-models. With the new version they are always created with a suffix (default: Enum). To avoid breaking changes in our applications i would like to remove this suffix.
I tried calling the client generator with multiple values like
<enumNameSuffix></enumNameSuffix>
This leads to the suffix "False" being applied. Somehow i cannot pass an empty suffix to the generator. Is there a solution to this?
I want to upgrade openapi-generator-maven-plugin from 4.x to 7.12.0. There is one change in the generated enum-models. With the new version they are always created with a suffix (default: Enum). To avoid breaking changes in our applications i would like to remove this suffix.
I tried calling the client generator with multiple values like
<enumNameSuffix></enumNameSuffix>
This leads to the suffix "False" being applied. Somehow i cannot pass an empty suffix to the generator. Is there a solution to this?
Share Improve this question edited Mar 11 at 14:25 Jeremy Fiel 3,3712 gold badges13 silver badges26 bronze badges asked Mar 11 at 12:16 domturbodomturbo 312 bronze badges1 Answer
Reset to default 0try this from the docs.
<modelNameSuffix></modelNameSuffix>
modelNameSuffix openapi.generator.maven.plugin.modelNameSuffix Sets the suffix for model classes and enums
src: https://github/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin