tryGetExample
fun <T : Any> tryGetExample(context: TestGenerationContext, schema: Schema<*>, deref: Schema<*>, provide: () -> T): T
Attempts to generate an example value, throwing an exception if it fails.
Return
generated example value, or null if generation fails
Parameters
context
test generation context containing operation details
schema
original schema (may be a reference)
deref
dereferenced schema
provide
lambda that generates the example value