[elm-client] Enums can have the same values (not allowed)
Created by: andys8
Having a definition with multiple enums with the same value, will produce types with the exact same constructor in elm, which is not allowed.
"metadata": {
"type": "object",
"properties": {
"length": {
"type": "string",
"enum": ["short", "long"]
},
"size": {
"type": "string",
"enum": ["short", "medium"]
}
},
}
Generated elm code:
type Length
= Short
| Long
type Size
= Short
| Medium
Should be:
type Length
= LengthShort
| LengthLong
type Size
= SizeShort
| SizeMedium
OpenAPI spec version: 0.4.0 Generator version 3.0.1