AllOfPropertyBuilder
Builder for AllOfPropertyDefinition.
Configures allOf schema composition where all schemas must match. Commonly used for schema composition, extension, and inheritance patterns.
This class is part of the JSON Schema DSL and cannot be instantiated directly. Use PropertyBuilder.allOf instead within the DSL context.
Example - Schema Extension
property("adminUser") {
allOf {
description = "Admin user with base properties plus admin-specific properties"
reference("#/definitions/BaseUser")
obj {
property("permissions") {
required = true
array {
ofString()
}
}
}
}
}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.