SchemaConfigResolver
Resolves the me.kpavlov.kt.schema.config annotation-processor option to a schema configuration.
The option value is either a case-insensitive shortcut — strict, lenient or openapi — selecting the matching preset, or the fully qualified name of a JsonSchemaConfig class. The class is a Kotlin object or has a public no-arg constructor, and must be visible to the class loader passed to the resolver.
Resolution never falls back silently: an unresolvable value fails with IllegalArgumentException.
Properties
Functions
Link copied to clipboard
fun resolveFunctionCallingConfig(value: String?, default: FunctionCallingSchemaConfig, classLoader: ClassLoader): FunctionCallingSchemaConfig
Resolves value to a FunctionCallingSchemaConfig.
Link copied to clipboard
fun resolveJsonSchemaConfig(value: String?, default: JsonSchemaConfig, classLoader: ClassLoader): JsonSchemaConfig
Resolves value to a JsonSchemaConfig.