@adobe/design-data-spec 4.13.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules/rules.yaml +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-spec",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Design Data Specification — prose, JSON Schemas, rule catalog, and conformance fixtures for the design data format",
5
5
  "type": "module",
6
6
  "repository": {
package/rules/rules.yaml CHANGED
@@ -1153,3 +1153,20 @@ rules:
1153
1153
  message: "Derived context '{context}' of '{component}' ({from}): the token value differs from the formula at {scale} for {sizes}"
1154
1154
  spec_ref: spec/component-visuals.md#derived-contexts
1155
1155
  introduced_in: "1.0.0-draft"
1156
+
1157
+ - id: SPEC-088
1158
+ name: relationship-duplicate-record
1159
+ severity: warning
1160
+ layer: 2
1161
+ category: relationship
1162
+ note: >
1163
+ An exact duplicate adds nothing to resolution, and a changelog that pairs records by
1164
+ identity cannot tell the copies apart. Records with different `setUuid` are not duplicates.
1165
+ SPEC-072 may also report a pair whose token has a scale counterpart, so the two rules can
1166
+ overlap.
1167
+ assert: >
1168
+ Two relationship records in the same file SHOULD NOT have equal scope, context,
1169
+ `$ref` (or inline value) and `setUuid`.
1170
+ message: "Relationship {scope} (context '{context}') repeats an earlier record with the same {ref_or_value}; remove the duplicate"
1171
+ spec_ref: spec/relationship-format.md
1172
+ introduced_in: "1.0.0-draft"