AnyOfPropertyBuilder
Builder for AnyOfPropertyDefinition.
Configures anyOf schema composition where one or more schemas must match. Unlike oneOf, the value can satisfy multiple schemas simultaneously.
This class is part of the JSON Schema DSL and cannot be instantiated directly. Use PropertyBuilder.anyOf instead within the DSL context.
Example
property("identifier") {
anyOf {
description = "Can be UUID or integer ID"
string {
format = "uuid"
description = "UUID identifier"
}
integer {
minimum = 1.0
description = "Numeric identifier"
}
}
}Content copied to clipboard
See also
Functions
Link copied to clipboard
Adds a nested allOf schema option.
Link copied to clipboard
Adds a nested anyOf schema option.
Link copied to clipboard
Adds an array schema option.
Link copied to clipboard
Adds a boolean schema option.
Link copied to clipboard
Link copied to clipboard
Adds an integer schema option.
Link copied to clipboard
Adds a number schema option.
Link copied to clipboard
Adds an object schema option.
Link copied to clipboard
Adds a nested oneOf schema option.
Link copied to clipboard
Adds a reference schema option.
Link copied to clipboard
Adds a string schema option.