JsonSchema

data class JsonSchema(val name: String, val strict: Boolean = false, val description: String? = null, val schema: JsonSchemaDefinition)(source)

Represents a JSON Schema definition

Author

Konstantin Pavlov

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

The name of the schema.

Link copied to clipboard

The actual JSON schema definition.

Link copied to clipboard

Whether to enable strict schema adherence.

Functions

Link copied to clipboard

Encodes the given JsonSchema instance into a JsonObject representation.

Link copied to clipboard

Encodes the JsonSchema instance into its JSON string representation.