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.
| Option | Type | Description |
|---|---|---|
| sortRequiredPropsFirst | boolean | Sort required schema properties before optional ones. Default: false. |
The following example shows required properties first:
redocly.yaml
openapi:
sortRequiredPropsFirst: true- OpenAPI configuration - All the options you can set under
openapi - OpenAPI Specification - The official standard for API descriptions
- OpenAPI visual reference - A visual map of every part of an OpenAPI description
- Configuration options - All the other options for your project