Discussions
Enum value used as example appears twice in combo box
over 3 years ago by Eric T
Hello,
When declaring in my OpenAPI spec a field such as:
"carColor":{"type":"string","example":"WHITE","description":"Color of the car","enum":["WHITE","BLACK","BLUE"]}
... then the field appears in Readme with a combo box with the possible values: WHITE
, WHITE
, BLACK
, BLUE
. If I select the first WHITE
value, it won't be included in the generated JSON in the right pane (it does work with the other values).
Is there a way to have this value appear only once, be included in the generated JSON and still keep this value as an example?
Thank you,
Eric