JsonSchema

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

Represents a JSON schema.

Constructors

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

Properties

Link copied to clipboard
val description: String? = null

The description of the schema.

Link copied to clipboard

The name of the schema.

Link copied to clipboard
val schema: JsonObject

The actual JSON schema.

Link copied to clipboard
val strict: Boolean? = null

Indicates if the schema is strict.