Discussions

Ask a Question
Back to All

Enum value used as example appears twice in combo box

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