Skip to content
Last updated

generatedSamplesMaxDepth

The generatedSamplesMaxDepth option controls how many schema levels appear in generated payload samples. The default is 8, which works well for most APIs. Adjust it when your schemas need more or less depth.

Options

OptionTypeDescription
generatedSamplesMaxDepthnumberSet the number of schema levels in generated payload samples. Default: 8.

Examples

The following example generates payload samples with 3 levels:

redocly.yaml
openapi:
  generatedSamplesMaxDepth: 3

Resources