-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
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
| MediumShould be:
type Length
= LengthShort
| LengthLong
type Size
= SizeShort
| SizeMediumOpenAPI spec version: 0.4.0
Generator version 3.0.1
Reactions are currently unavailable