A validation problem found in a pattern, as a discriminated union on kind. The semantic
variants describe cross-stitch-specific rule violations and derive from IssueParams
(the single source of truth for those rules), each carrying structured data; the
schema-violation variant is the catch-all for structural and primitive failures, tagged with
a coarse owned code. Every variant also carries the offending path and a human-readable
message.
A validation problem found in a pattern, as a discriminated union on
kind. The semantic variants describe cross-stitch-specific rule violations and derive from IssueParams (the single source of truth for those rules), each carrying structured data; theschema-violationvariant is the catch-all for structural and primitive failures, tagged with a coarse ownedcode. Every variant also carries the offendingpathand a human-readablemessage.