@adobe/design-data-spec 3.0.0 → 3.1.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.
package/package.json
CHANGED
package/rules/rules.yaml
CHANGED
|
@@ -578,3 +578,19 @@ rules:
|
|
|
578
578
|
message: "Token '{token}' references anatomy part '{anatomy}' which is not in the spectrum-design-data registry/anatomy-terms vocabulary"
|
|
579
579
|
spec_ref: spec/anatomy-format.md#cross-reference-with-token-name-objects
|
|
580
580
|
introduced_in: "1.0.0-draft"
|
|
581
|
+
|
|
582
|
+
- id: SPEC-050
|
|
583
|
+
name: property-decomposition-complete
|
|
584
|
+
severity: warning
|
|
585
|
+
layer: 2
|
|
586
|
+
category: naming-consistency
|
|
587
|
+
assert: >
|
|
588
|
+
A token name-object's `property` value SHOULD be atomic. It MUST NOT fuse a
|
|
589
|
+
segment that belongs to another structured field (anatomy, object, position,
|
|
590
|
+
size, state, colorRole, emphasis) -- detected independent of whether the token
|
|
591
|
+
roundtrips through canonical name generation (SPEC-007) or is listed in
|
|
592
|
+
naming-exceptions.json. Roundtripping cleanly does not mean a property is
|
|
593
|
+
decomposed (spectrum-design-data-284).
|
|
594
|
+
message: "Token '{token}' fuses '{field}' concept '{value}' into name.property; decompose into the structured field"
|
|
595
|
+
spec_ref: spec/token-format.md#name-object
|
|
596
|
+
introduced_in: "1.0.0-draft"
|