Initialize from a Constraint.Definition or the constraint DSL defined by the Matter Specification.
Optional
descIndicates constraint is defined in prose and cannot be enforced automatically.
Optional
entryConstraint on list child element.
Optional
errorsOptional
inRequire set membership for the value.
Optional
maxUpper bound on value or sequence length.
Optional
minLower bound on value or sequence length.
Optional
partsList of sub-constraints in a sequence.
Optional
valueConstant value.
Test a value against a constraint. Does not recurse into arrays.
Optional
properties: Record<string, any>
An operational view of constraints as defined by the Matter specification.
A "constraint" limits possible data values.
Formally a constraint is not considered a quality by the specification. It is handled similarly to qualities, though, so we keep it in the same section.