Open agatah2333 opened 3 months ago
This XML format does not have a way to express constraints on struct fields.
That said, the actual implementation in the Binding cluster needs to be enforcing the constraint, and it does not seem to do that.
If you check the other XML files, for example, application-basic-cluster.xml, they all have a clear definition of min.
And one follow-up question: if the code needs to add the limitation, why does the XML provide the detailed limitation? Does it only affect the .matter file when using ZAP?
For writable attributes the min value is enforced automatically, at least if the value lives in the Ember datastore.
For struct fields there is no enforcement, because nothing uses those XML values for anything; they are not available from the ZAP database, as far as I know.
Reproduction steps
The value definition for the parameter min is missing in the Binding cluster.
the min of group_id should be 1
This command could work incorrectly due to the missing constraints.
Bug prevalence
each time
GitHub hash of the SDK that was being used
5bb5c9e23d532cea40476fc0bd1d3008522792ba
Platform
other
Platform Version(s)
1.3
Type
Common Cluster Logic, Spec Compliance Issue, Core SDK Performance Improvement, Core SDK Interopability Issue
Anything else?
No response