If string enum value in OpenAPI definition is pascal case, the enum name on generated Java client will be named without underscores like below:
public enum StatusEnum {
WAITINGFORSOMETHING("WaitingForSomething"),
I think that should be named with underscores for readability like below:
public enum StatusEnum {
WAITING_FOR_SOMETHING("WaitingForSomething"),
Nothing.
Nothing.
Describe alternatives you've considered
You could use x-enum-varnames to influence the name of the enum:
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.
Most helpful comment
You could use
x-enum-varnamesto influence the name of the enum: