ObjectPropertyDefinition

data class ObjectPropertyDefinition(val type: List<String> = OBJECT_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<JsonObject>? = null, val properties: Map<String, PropertyDefinition>? = null, val patternProperties: Map<String, PropertyDefinition>? = null, val unevaluatedProperties: PropertyDefinition? = null, val propertyNames: PropertyDefinition? = null, val required: List<String>? = null, val dependentRequired: Map<String, List<String>>? = null, val dependentSchemas: Map<String, PropertyDefinition>? = null, val dependencies: Map<String, JsonElement>? = null, val minProperties: Int? = null, val maxProperties: Int? = null, val additionalProperties: AdditionalPropertiesConstraint? = null) : ValuePropertyDefinition<JsonObject> , PropertiesContainer(source)

Represents an object property

Constructors

Link copied to clipboard
constructor(type: List<String> = OBJECT_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<JsonObject>? = null, properties: Map<String, PropertyDefinition>? = null, patternProperties: Map<String, PropertyDefinition>? = null, unevaluatedProperties: PropertyDefinition? = null, propertyNames: PropertyDefinition? = null, required: List<String>? = null, dependentRequired: Map<String, List<String>>? = null, dependentSchemas: Map<String, PropertyDefinition>? = null, dependencies: Map<String, JsonElement>? = null, minProperties: Int? = null, maxProperties: Int? = null, additionalProperties: AdditionalPropertiesConstraint? = null)

Properties

Link copied to clipboard
@SerialName(value = "additionalProperties")
open override val additionalProperties: AdditionalPropertiesConstraint?

Constraint for additional properties in the object.

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
Link copied to clipboard
open override val dependentRequired: Map<String, List<String>>?

A map of property names to lists of other property names that are required if the given property is present.

Link copied to clipboard

A map of property names to schemas that must be satisfied if the given property is present.

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

Maximum number of properties allowed in the object.

Link copied to clipboard

Minimum number of properties allowed in the object.

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

Map of property definitions for properties matching a regular expression pattern.

Link copied to clipboard
open override val properties: Map<String, PropertyDefinition>?

Map of property definitions.

Link copied to clipboard
open override val propertyNames: PropertyDefinition?

Schema for property names.

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
open override val required: List<String>?

List of required property names.

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

Schema for unevaluated properties.

Link copied to clipboard
open override val writeOnly: Boolean?

Functions

Link copied to clipboard

Returns the allOf property definition for name, or null if not found or not an allOf.

Link copied to clipboard

Returns the anyOf property definition for name, or null if not found or not an anyOf.

Link copied to clipboard

Returns the array property definition for name, or null if not found or not an array property.

Link copied to clipboard

Returns the boolean property definition for name, or null if not found or not a boolean property.

Link copied to clipboard

Returns the boolean schema definition for name, or null if not found or not a boolean schema.

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

Returns the const value as a JsonObject, or null if not set or not an object.

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

Returns the default value as a JsonObject, or null if not set or not an object.

Link copied to clipboard

Returns the numeric property definition for name, or null if not found or not a numeric property.

Link copied to clipboard

Returns the object property definition for name, or null if not found or not an object property.

Link copied to clipboard

Returns the oneOf property definition for name, or null if not found or not a oneOf.

Link copied to clipboard

Returns the reference property definition for name, or null if not found or not a reference.

Link copied to clipboard

Returns the string property definition for name, or null if not found or not a string property.