Initialize from a Constraint.Definition or the constraint DSL defined by the Matter Specification.
OptionaldescIndicates constraint is defined in prose and cannot be enforced automatically.
OptionalentryConstraint on list child element.
OptionalerrorsOptionalinRequire set membership for the value.
OptionalmaxUpper bound on value or sequence length.
OptionalminLower bound on value or sequence length.
OptionalpartsList of sub-constraints in a sequence.
OptionalvalueConstant value.
Test a value against a constraint. Does not recurse into arrays.
Optionalproperties: 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.