Schema
Represents a JSON Schema definition.
This sealed class and its subclasses model different types in JSON Schema:
ObjectSchema: Represents a JSON object with defined properties.
StringSchema: Represents a string type, possibly with an enumeration of allowed values.
NumberSchema: Represents a numeric type (integers, floats, doubles).
ArraySchema: Represents an array type, specifying items as another schema.
BooleanSchema: Represents a boolean type.
Inheritors
Types
Link copied to clipboard
@Serializable
@SerialName(value = "array")
Link copied to clipboard
@Serializable
@SerialName(value = "boolean")
Link copied to clipboard
@Serializable
@SerialName(value = "number")
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "string")
Functions
Link copied to clipboard
Converts this Schema instance into a JsonElement.