Open mbogner opened 2 years ago
I have a similar issue with a string based enum generation. My expectation is that the generated @JsonProperty("<value>")
should not contain the value but the var name, shouldn't it?
My enum definition looks basically like this:
MyEnum:
type: string
enum:
- eins
- zwei
x-enum-varnames:
- one
- two
and generation results in this:
@JsonProperty("eins") ONE("eins"), [...]
where I would have expected
@JsonProperty("ONE") ONE("eins"), [...]
Description
Generated enum case is unusable:
Using RequiredActions.valueOf will of course fail when trying to translate something like CONFIGURE_TOTP to cONFIGURETOTP.
openapi-generator version
6.0.0
OpenAPI declaration file content or url
in an object as property:
Generation Details
Steps to reproduce
Suggest a fix
Keep upper/lower case as it is.