-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
Description
Hi All,
is possible generate integer enum with alias value ?
For i.e
type: integer
enum:
- Outright
- Switch
- Butterfly
The gen raise the errore
Exception in thread "main" java.lang.IllegalArgumentException: Cannot deserialize value of type
java.lang.Number from String "Outright": not a valid number
The expected result ( for i.e using java) is the following:
public enum RfqLegTypeEnum {
Outright(0),
Switch(1),
Butterfly(2),
How can obtain this result ?
openapi-generator version
3.1.2
OpenAPI declaration file content or url
Thnx