ReflectionClassJsonObjectSchemaGenerator

A generator class for creating JSON object schemas using reflection-based introspection.

This class utilizes Kotlin's reflection capabilities to inspect the structure of a target class and generate a corresponding JSON schema representation. It relies on the Json serializer and a customizable configuration defined in JsonSchemaConfig.

Parameters

config

Configuration settings for schema customization.

Constructors

Link copied to clipboard
constructor(json: Json, config: JsonSchemaConfig)

Accepts a Json instance and a JsonSchemaConfig for custom schema generation.

constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun encodeToString(schema: JsonObject): String
Link copied to clipboard
open override fun generateSchema(target: KClass<out Any>): JsonObject
Link copied to clipboard
open override fun generateSchemaString(target: KClass<out Any>): String
Link copied to clipboard
open override fun schemaType(): KClass<JsonObject>
Link copied to clipboard
open override fun targetType(): KClass<KClass<out Any>>