getExampleValueWithOptions

fun getExampleValueWithOptions(name: String, schema: Schema<*>, openAPI: OpenAPI, options: SchemaExampleValueGeneratorOptions, variationIndex: Int = 0): Any

Retrieves the example value with custom options for per-call customization.

This method allows overriding the default options for specific use cases, such as generating response examples with different behavior than request examples.

Return

example value matching the schema

Parameters

name

parameter name (used in error messages)

schema

parameter schema (may be a $ref)

openAPI

OpenAPI model used to resolve references

options

custom options for this specific call

variationIndex

index used to generate varied values

Throws

if no provider can generate a value