ResponseExampleExtractor

constructor(responseBodyGenerator: ResponseBodyGenerator)


constructor(schemaExampleValueGenerator: SchemaExampleValueGenerator)

Creates an extractor whose fallback bodies are derived by schemaExampleValueGenerator.

Note: this constructor applies SchemaExampleValueGeneratorOptions.RESPONSE_DEFAULTS for the include/fallback flags (includeOptionalExampleProperties=true, includeWriteOnly=false, useSchemaExampleFallback=true); only maxExampleDepth and fullExample are taken from the generator's configured options. Use the ResponseBodyGenerator constructor to keep full control over generation options.

Parameters

schemaExampleValueGenerator

generator for deriving fallback examples from schemas