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
ExampleMYProperty.java and the class name is ExampleMYProperty
ExampleMyproperty0.java and the class name is ExampleMyproperty.
The property name "myproperty" collides with the name of the schema component: "Example_MYProperty"
With another property name, for example "amyproperty" it will work and it will create 2 Java files with correct class name:
ExampleAmyproperty.java
ExampleMYProperty.java
In versions <=7.8.0 it only creates one Java file with compilation error, the class name has the first 'y' in lower case.
ExampleMYProperty.java -->class name ExampleMyproperty
miruritira
changed the title
[BUG][JAVA] Description
[BUG][JAVA] Generate duplicated Java file (with number sufix) with incorrect class name
Dec 24, 2024
Description
Generates 2 classes with compilation errors.
The property name "myproperty" collides with the name of the schema component: "Example_MYProperty"
With another property name, for example "amyproperty" it will work and it will create 2 Java files with correct class name:
In versions <=7.8.0 it only creates one Java file with compilation error, the class name has the first 'y' in lower case.
ExampleMYProperty.java -->class name ExampleMyproperty
openapi-generator version
7.10.0 openapi-generator-maven-plugin
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
mvn clean generate-sources
The text was updated successfully, but these errors were encountered: