class Schema(val nullable: Boolean = false, val metadata: Map<String, Any>? = null, val ref: String? = null, val type: Type? = null, val enum: Set<String>? = null, val elements: Schema? = null, val properties: Map<String, Schema>? = null, val optionalProperties: Map<String, Schema>? = null, val values: Schema? = null, val discriminator: String? = null, val mapping: Map<String, Schema>? = null, val definitions: Map<String, Schema>? = null)

Represents a JSON Type Definition schema. Modified version of https://github.com/jsontypedef/json-typedef-java/blob/master/src/main/java/com/jsontypedef/jtd/Schema.java

Constructors

Link copied to clipboard
constructor(nullable: Boolean = false, metadata: Map<String, Any>? = null, ref: String? = null, type: Type? = null, enum: Set<String>? = null, elements: Schema? = null, properties: Map<String, Schema>? = null, optionalProperties: Map<String, Schema>? = null, values: Schema? = null, discriminator: String? = null, mapping: Map<String, Schema>? = null, definitions: Map<String, Schema>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val enum: Set<String>?
Link copied to clipboard
val form: Form

Gets the form the Schema takes on.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ref: String?
Link copied to clipboard
val type: Type?
Link copied to clipboard

Functions

Link copied to clipboard
fun verify()

Ensures the schema is a valid root schema.

private fun verify(root: Schema)

Verifies that this schema is valid