Discussions

Ask a Question
Back to All

Unusual rendering of enum values in Response objects

I've noticed that enums render a little funny in the response schemas generated for the API Reference.

Can anyone help me understand why all but the first value of the enum seem to be consistently re-rendered at the bottom of the enum? Here we see 1 here, which really isn't serving any purpose I can understand. I've uploaded the same schema in other products and they don't render the extra row at the bottom here.

An example of the relevant YAML is attached for review:

customertype_name:
enum:
- 0
- 1
type: integer
description: |-
0 - Personal
_ 1 - Business
readOnly: true

Thanks for any advice.

Sample from Redoc below, which shows both values for the enum: