You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following spec shows the use of a default value for the enumProp field:
EnumExample:
type: string
enum:
- One
- Two
ObjectExample:
type: object
properties:
enumProp:
$ref: '#/components/schemas/EnumExample'
default: 'One'
When generating the model classes, the 'default' value is not taken into account. It does work for simple datatypes though, but not for enumeration types that are referenced.
The text was updated successfully, but these errors were encountered:
The following spec shows the use of a default value for the
enumProp
field:When generating the model classes, the 'default' value is not taken into account. It does work for simple datatypes though, but not for enumeration types that are referenced.
The text was updated successfully, but these errors were encountered: