JsonSchema

@Serializable
data class JsonSchema(val name: String? = null, val schema: JsonObject, val strict: Boolean = true)

Specification for JSON schema response format

Constructors

Link copied to clipboard
constructor(name: String? = null, schema: JsonObject, strict: Boolean = true)

Properties

Link copied to clipboard
@SerialName(value = "name")
val name: String? = null

Optional name for the schema

Link copied to clipboard
@SerialName(value = "schema")
val schema: JsonObject

The JSON schema specification

Link copied to clipboard
@SerialName(value = "strict")
val strict: Boolean = true

Whether to enforce strict schema validation