Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [JAVA] Wrong Enum name generated #19081

Open
rogeriobautz opened this issue Jul 4, 2024 · 1 comment
Open

[BUG] [JAVA] Wrong Enum name generated #19081

rogeriobautz opened this issue Jul 4, 2024 · 1 comment

Comments

@rogeriobautz
Copy link

Description

The enum constants names are being cut off when they have the equals first parts before an underline.

public enum EnumCalculation {
  
  UTEIS("DIAS_UTEIS"),
  
  CORRIDOS("DIAS_CORRIDOS");

  private String value;

//...
}
openapi-generator version

7.7.0

OpenAPI declaration file content or url
  • A snippet of the yaml file
      enum:
        - DIAS_UTEIS
        - DIAS_CORRIDOS
      example: DIAS_CORRIDOS

Complete file
issues.zip

Generation Details

npx @openapitools/openapi-generator-cli generate -i issues.yml -g java -o ./tmp/test/ --additional-properties=useJakartaEe=true,serializationLibrary=jackson,library=microprofile,useBeanValidation=true

Steps to reproduce

Install operaapi-generator-cli and run the command above

@jpfinne
Copy link
Contributor

jpfinne commented Jul 5, 2024

same as #18889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants