OneOfPropertyDefinition
Represents a oneOf schema composition.
Validates that the instance matches exactly one of the provided schemas. Commonly used for polymorphic types with mutually exclusive alternatives.
See also
Constructors
Properties
Constraint for additional properties in the object.
Schema that at least one array item must match.
A map of property names to lists of other property names that are required if the given property is present.
A map of property names to schemas that must be satisfied if the given property is present.
Optional description of the property
Optional discriminator to efficiently determine which schema applies
Schema for array items.
Maximum number of items that can match the "contains" schema.
Maximum number of items allowed in the array.
Maximum number of properties allowed in the object.
Minimum number of items that must match the "contains" schema.
Minimum number of items allowed in the array.
Minimum number of properties allowed in the object.
List of property definitions representing the alternatives. Must contain at least 2 options.
Map of property definitions for properties matching a regular expression pattern.
Array of schemas for positional items.
Map of property definitions.
Schema for property names.
Schema for unevaluated array items.
Schema for unevaluated properties.
Whether all items in the array must be unique.
Functions
Returns the allOf property definition for name, or null if not found or not an allOf.
Returns the anyOf property definition for name, or null if not found or not an anyOf.
Returns the array property definition for name, or null if not found or not an array property.
Returns the boolean property definition for name, or null if not found or not a boolean property.
Returns the boolean schema definition for name, or null if not found or not a boolean schema.
Returns the numeric property definition for name, or null if not found or not a numeric property.
Returns the object property definition for name, or null if not found or not an object property.
Returns the oneOf property definition for name, or null if not found or not a oneOf.
Returns the reference property definition for name, or null if not found or not a reference.
Returns the string property definition for name, or null if not found or not a string property.