The type of conditional used in this group
Creates a new ObjectGroup with the specified conditionals.
The type of conditional used in this group
Array of conditional property sets to evaluate
Converts the object group to JSON Schema format using anyOf.
JSON Schema representation of this group
Clones the ObjectGroup including all conditionals and the otherwise callback.
A cloned instance of this ObjectGroup
Defines a fallback callback to invoke when none of the group conditions match. By default, this reports a validation error. Use this method to customize the error handling behavior.
Callback to invoke when no condition matches
This group instance for method chaining
Compiles the group to a compiler node for validation.
Reference store for the compiler
Parser options
Compiled object group node
ObjectGroup represents a collection of conditional property sets that can be merged into an object based on runtime conditions. This enables dynamic schema composition where different properties are validated based on conditional logic.
Example