ObjectPropertyDefinition

data class ObjectPropertyDefinition(val type: List<String> = listOf("object"), val description: String? = null, val nullable: Boolean? = null, val properties: Map<String, PropertyDefinition>? = null, val required: List<String>? = null, val additionalProperties: JsonElement? = null, val default: JsonElement? = null) : ValuePropertyDefinition, PropertiesContainer(source)

Represents an object property

Constructors

Link copied to clipboard
constructor(type: List<String> = listOf("object"), description: String? = null, nullable: Boolean? = null, properties: Map<String, PropertyDefinition>? = null, required: List<String>? = null, additionalProperties: JsonElement? = null, default: JsonElement? = null)

Properties

Link copied to clipboard
@SerialName(value = "additionalProperties")
val additionalProperties: JsonElement?

Defines whether additional properties are allowed and their schema. Can be:

Link copied to clipboard
Link copied to clipboard
open override val description: String?

Optional description of the property.

Link copied to clipboard
open override val nullable: Boolean?

Whether the property can be null.

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

Represents a map of property definitions for an object.

Link copied to clipboard
Link copied to clipboard

The data type of the property.

Functions

Link copied to clipboard

Retrieves the allOf property definition associated with the specified property name.

Link copied to clipboard

Retrieves the anyOf property definition associated with the specified property name.

Link copied to clipboard

Retrieves the array property definition associated with the specified property name.

Link copied to clipboard

Retrieves the boolean property definition associated with the specified property name.

Link copied to clipboard

Retrieves the numeric property definition associated with the specified property name.

Link copied to clipboard

Retrieves the object property definition associated with the specified property name.

Link copied to clipboard

Retrieves the oneOf property definition associated with the specified property name.

Link copied to clipboard

Retrieves the reference property definition associated with the specified property name.

Link copied to clipboard

Retrieves the string property definition associated with the specified property name.