ReflectionClassJsonSchemaGenerator
class ReflectionClassJsonSchemaGenerator @JvmOverloads constructor(jsonSchemaConfig: JsonSchemaConfig = JsonSchemaConfig.Default) : AbstractSchemaGenerator<KClass<out Any>, JsonSchema> (source)
A generator for producing JSON Schema representations of Kotlin classes using reflection.
This class utilizes reflection-based introspection to analyze Kotlin KClass definitions and generate JSON Schema objects. It is built on top of the AbstractSchemaGenerator and works with a configurable JsonSchemaConfig to define schema generation behavior.
Parameters
jsonSchemaConfig
Configuration for generating JSON Schemas, such as formatting details and handling of optional nullable properties. Defaults to JsonSchemaConfig.Default.