BooleanPropertyDefinition

data class BooleanPropertyDefinition(val type: List<String> = BOOLEAN_TYPE, val id: String? = null, val anchor: String? = null, val dynamicAnchor: String? = null, val ref: String? = null, val dynamicRef: String? = null, val comment: String? = null, val title: String? = null, val description: String? = null, val nullable: Boolean? = null, val default: JsonElement? = null, val constValue: JsonElement? = null, val defs: Map<String, PropertyDefinition>? = null, val readOnly: Boolean? = null, val writeOnly: Boolean? = null, val deprecated: Boolean? = null, val examples: List<JsonElement>? = null, val oneOf: List<PropertyDefinition>? = null, val anyOf: List<PropertyDefinition>? = null, val allOf: List<PropertyDefinition>? = null, val not: PropertyDefinition? = null, val ifSchema: PropertyDefinition? = null, val thenSchema: PropertyDefinition? = null, val elseSchema: PropertyDefinition? = null, val enum: List<Boolean>? = null) : ValuePropertyDefinition<Boolean> (source)

Represents a boolean property

Constructors

Link copied to clipboard
constructor(type: List<String> = BOOLEAN_TYPE, id: String? = null, anchor: String? = null, dynamicAnchor: String? = null, ref: String? = null, dynamicRef: String? = null, comment: String? = null, title: String? = null, description: String? = null, nullable: Boolean? = null, default: JsonElement? = null, constValue: JsonElement? = null, defs: Map<String, PropertyDefinition>? = null, readOnly: Boolean? = null, writeOnly: Boolean? = null, deprecated: Boolean? = null, examples: List<JsonElement>? = null, oneOf: List<PropertyDefinition>? = null, anyOf: List<PropertyDefinition>? = null, allOf: List<PropertyDefinition>? = null, not: PropertyDefinition? = null, ifSchema: PropertyDefinition? = null, thenSchema: PropertyDefinition? = null, elseSchema: PropertyDefinition? = null, enum: List<Boolean>? = null)

Properties

Link copied to clipboard
open override val allOf: List<PropertyDefinition>?
Link copied to clipboard
@SerialName(value = "$anchor")
open override val anchor: String?
Link copied to clipboard
open override val anyOf: List<PropertyDefinition>?
Link copied to clipboard
@SerialName(value = "$comment")
open override val comment: String?
Link copied to clipboard
@SerialName(value = "const")
open override val constValue: JsonElement?

Const value as JsonElement (spec-compliant storage). Can be any JSON value per JSON Schema 2020-12 spec.

Link copied to clipboard
open override val default: JsonElement?

Default value as JsonElement (spec-compliant storage). Can be any JSON value per JSON Schema 2020-12 spec.

Link copied to clipboard
@SerialName(value = "$defs")
open override val defs: Map<String, PropertyDefinition>?
Link copied to clipboard
open override val deprecated: Boolean?
Link copied to clipboard
open override val description: String?
Link copied to clipboard
@SerialName(value = "$dynamicAnchor")
open override val dynamicAnchor: String?
Link copied to clipboard
@SerialName(value = "$dynamicRef")
open override val dynamicRef: String?
Link copied to clipboard
@SerialName(value = "else")
open override val elseSchema: PropertyDefinition?
Link copied to clipboard
Link copied to clipboard
open override val examples: List<JsonElement>?
Link copied to clipboard
@SerialName(value = "$id")
open override val id: String?
Link copied to clipboard
@SerialName(value = "if")
open override val ifSchema: PropertyDefinition?
Link copied to clipboard
open override val not: PropertyDefinition?
Link copied to clipboard
open override val nullable: Boolean?

Whether the property can be null.

Link copied to clipboard
open override val oneOf: List<PropertyDefinition>?
Link copied to clipboard
open override val readOnly: Boolean?
Link copied to clipboard
@SerialName(value = "$ref")
open override val ref: String?
Link copied to clipboard
@SerialName(value = "then")
open override val thenSchema: PropertyDefinition?
Link copied to clipboard
open override val title: String?
Link copied to clipboard

The data type of the property.

Link copied to clipboard
open override val writeOnly: Boolean?

Functions

Link copied to clipboard
open override fun getTypedConst(): Boolean?

Returns the const value as a Boolean, or null if not set or not a boolean.

Link copied to clipboard
open override fun getTypedDefault(): Boolean?

Returns the default value as a Boolean, or null if not set or not a boolean.