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
[REQ][Java] Enum name should have underscore in case the value is pascal case #4837
Comments
You could use Status:
type: string
enum:
- WaitingForSomething
- Done
x-enum-varnames:
- WAITING_FOR_SOMETHING
- DONE |
@jmini Thank you for letting me know the alternative. I will try it. |
@jmini Thanks a lot! I couldn't find this in the docs, though. |
In the doc of kotlin-spring generator:
What we need is SCREAMING_SNAKE_CASE for all generators related to Java and Kotlin. |
Is your feature request related to a problem? Please describe.
If string enum value in OpenAPI definition is pascal case, the enum name on generated Java client will be named without underscores like below:
Describe the solution you'd like
I think that should be named with underscores for readability like below:
Describe alternatives you've considered
Nothing.
Additional context
Nothing.
The text was updated successfully, but these errors were encountered: