ExampleValueSettings

data class ExampleValueSettings(val providers: List<String> = DEFAULT_PROVIDER_ORDER, val maxExampleDepth: Int = SchemaExampleValueGeneratorOptions.DEFAULT_MAX_EXAMPLE_DEPTH, val includeOptionalExampleProperties: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_INCLUDE_OPTIONAL_EXAMPLES, val includeWriteOnly: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_INCLUDE_WRITE_ONLY, val useSchemaExampleFallback: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_USE_SCHEMA_EXAMPLE_FALLBACK, val uuid: UuidProviderSettings = UuidProviderSettings(), val email: EmailProviderSettings = EmailProviderSettings(), val date: DateProviderSettings = DateProviderSettings(), val dateTime: DateTimeProviderSettings = DateTimeProviderSettings(), val plainString: PlainStringProviderSettings = PlainStringProviderSettings(), val fullExample: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_FULL_EXAMPLE)

Configuration for schema example value generation.

Controls how synthetic test data is generated from OpenAPI schemas when building valid baselines and when providers need schema-derived values.

Constructors

Link copied to clipboard
constructor(providers: List<String> = DEFAULT_PROVIDER_ORDER, maxExampleDepth: Int = SchemaExampleValueGeneratorOptions.DEFAULT_MAX_EXAMPLE_DEPTH, includeOptionalExampleProperties: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_INCLUDE_OPTIONAL_EXAMPLES, includeWriteOnly: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_INCLUDE_WRITE_ONLY, useSchemaExampleFallback: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_USE_SCHEMA_EXAMPLE_FALLBACK, uuid: UuidProviderSettings = UuidProviderSettings(), email: EmailProviderSettings = EmailProviderSettings(), date: DateProviderSettings = DateProviderSettings(), dateTime: DateTimeProviderSettings = DateTimeProviderSettings(), plainString: PlainStringProviderSettings = PlainStringProviderSettings(), fullExample: Boolean = SchemaExampleValueGeneratorOptions.DEFAULT_FULL_EXAMPLE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Date provider settings.

Link copied to clipboard

Date-time provider settings.

Link copied to clipboard

Email provider settings.

Link copied to clipboard

When true, generated examples are "full": every declared property is populated (required and optional, regardless of explicit examples) and every array contains at least one item. Composed schemas collapse to a single variant. includeWriteOnly and depth/cycle guards still apply.

Link copied to clipboard

When true, optional properties with explicit examples/defaults are included for object examples.

Link copied to clipboard

When false, writeOnly properties are excluded from generated examples.

Link copied to clipboard

Maximum depth for recursive schema traversal while generating examples.

Link copied to clipboard

Plain string provider settings.

Link copied to clipboard

Ordered list of provider IDs. The first matching provider wins. Omit a provider to disable it.

Link copied to clipboard

When true, schema.examples and schema.default are used as fallbacks when example is missing.

Link copied to clipboard

UUID provider settings.