Last updated

maxDisplayedEnumValues

The maxDisplayedEnumValues displays only the specified number of enum values. The remaining values are hidden in an expandable area. By default 10 values are displayed which is ideal for usability.

Options

OptionTypeDescription
maxDisplayedEnumValuesnumberSets the number of enum values to display. The default behavior is that 10 values are displayed.

Examples

The following example displays three enum values for each enum field, any further values are available in an expandable section:

redocly.yaml
openapi:
  maxDisplayedEnumValues: 3
  • openapi - Learn more about using openapi configuration.

Resources