schemasExpansionLevel
The schemasExpansionLevel
option controls the expansion level of schemas in OpenAPI reference documentation. Set it to all
to expand all schemas regardless of their level, or set it to a number to expand schemas up to the specified level. Required properties are expanded by default.
Options
Option | Type | Description |
---|---|---|
schemasExpansionLevel | number | string | 'all' | Sets the default expand level for schemas. The default value is 0 , so nothing is expanded. |
Examples
The following example expands schemas up to 4 levels deep.
redocly.yaml
openapi: schemasExpansionLevel: 4
Related options
- openapi - Learn more about using
openapi
configuration.