Constraints
Constraints are the primary mechanism used by node-rules definitions to validate the contents of a parsed configuration document. They express concrete requirements such as value ranges, allowed formats, uniqueness, or relationships between nodes.
The meaning and applicability of a constraint depend on the declared type of the
node it constrains. Some constraints—such as minimum—have different semantics
depending on whether they are applied to numbers, text, lists, or other structures.
Other constraints are only valid for specific node types.
This chapter documents all available constraints, explains their semantics, and describes which node types they apply to. Each constraint page includes examples and notes to help you choose the correct constraint for your use case.