forked from loafle/openapi-generator-original
When a string enumeration has the empty string as one of its available values, the generated code for many languages is invalid because the empty string can not be used as an identifier. As with numbers and symbols, provide a mapping to an English name which can be used as a replacement. In this case, "empty" for the empty string/empty value. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
694 B
694 B
SwaggerPetstore.EnumTest
Properties
Name | Type | Description | Notes |
---|---|---|---|
enumString | String | [optional] | |
enumInteger | Number | [optional] | |
enumNumber | Number | [optional] | |
outerEnum | OuterEnum | [optional] |
Enum: EnumStringEnum
-
UPPER
(value:"UPPER"
) -
lower
(value:"lower"
) -
empty
(value:""
)
Enum: EnumIntegerEnum
-
1
(value:1
) -
-1
(value:-1
)
Enum: EnumNumberEnum
-
1.1
(value:1.1
) -
-1.2
(value:-1.2
)