JsonSchemaDefinition
data class JsonSchemaDefinition(val id: String? = null, val schema: String? = null, val type: String = "object", val properties: Map<String, PropertyDefinition> = emptyMap(), val required: List<String> = emptyList(), val additionalProperties: JsonElement? = null, val description: String? = null, val items: PropertyDefinition? = null)(source)
Represents a JSON Schema definition.
Author
Konstantin Pavlov
Constructors
Link copied to clipboard
constructor(id: String? = null, schema: String? = null, type: String = "object", properties: Map<String, PropertyDefinition> = emptyMap(), required: List<String> = emptyList(), additionalProperties: JsonElement? = null, description: String? = null, items: PropertyDefinition? = null)
Properties
Link copied to clipboard
Defines whether additional properties are allowed and their schema. Can be:
Link copied to clipboard
Optional description of the schema.
Link copied to clipboard
JSON Schema $id
Link copied to clipboard
Link copied to clipboard
A map of property definitions.
Link copied to clipboard
JSON Schema $schema keyword, e.g. https://json-schema.org/draft/2020-12/schema
Link copied to clipboard
The JSON schema type (e.g., "object", "array", "string", etc.).