Skip to content
Last updated

sortRequiredPropsFirst

By default, fields display in the order they appear in the API description. The sortRequiredPropsFirst option moves required fields to the top of each schema section.

Options

OptionTypeDescription
sortRequiredPropsFirstbooleanSort required schema properties before optional ones. Default: false.

Examples

The following example shows required properties first:

redocly.yaml
openapi:
  sortRequiredPropsFirst: true

Resources