allOf
Creates an allOf property definition.
Validates that the value matches all of the provided schemas. Commonly used for schema composition and inheritance.
Example
property("extendedUser") {
allOf {
description = "User with additional properties"
reference("#/definitions/BaseUser")
obj {
property("role") {
required = true
string { enum = listOf("admin", "user") }
}
}
}
}Content copied to clipboard
Return
A configured AllOfPropertyDefinition
Parameters
block
Configuration for the allOf property