AnyOfPropertyDefinition

data class AnyOfPropertyDefinition(val anyOf: List<PropertyDefinition>, val description: String? = null) : PropertyDefinition(source)

Represents an anyOf schema composition.

Validates that the instance matches one or more of the provided schemas. Unlike oneOf, the instance can match multiple schemas simultaneously.

See also

Constructors

Link copied to clipboard
constructor(anyOf: List<PropertyDefinition>, description: String? = null)

Properties

Link copied to clipboard

List of property definitions representing the alternatives. Must contain at least 2 options.

Link copied to clipboard

Optional description of the property