Segment Validation
A Segment is a list of ConditionSet entries joined by UNION / INTERSECT / EXCEPT. Two rules guarantee a deterministic, well-formed set expression.
Rules
| Rule | Error Code |
|---|---|
ConditionSets Sort values must be unique | SetsUniqueSort |
Sets at index 1+ must have Intersection specified | RequiredIntersection |
Note
The first set (after
Sort ordering) defines the base collection and has Intersection = null. Every subsequent set combines into the running result, so its Intersection is required.