KotlinxSerializerJsonSchemaInference

class KotlinxSerializerJsonSchemaInference(module: SerializersModule, formats: (SerialDescriptor) -> String? = KotlinxSerializerDefaultFormats) : JsonSchemaInference(source)

Infers JSON schema from kotlinx-serialization descriptors using the supplied module.

Constructors

Link copied to clipboard
constructor(module: SerializersModule, formats: (SerialDescriptor) -> String? = KotlinxSerializerDefaultFormats)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun buildSchema(type: KType): JsonSchema

Builds a JsonSchema for the given type.

Link copied to clipboard

Generates a JSON Schema representation for the given type T.