@contentful/experience-design-system-types 2.41.1-dev-build-a14ed2ff.0 → 2.42.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/dist/package.json +1 -1
- package/dist/src/cdf/validate.js +0 -10
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/cdf/validate.js
CHANGED
|
@@ -75,16 +75,6 @@ function entryErrors(node, prefix) {
|
|
|
75
75
|
? validateTokenEntry
|
|
76
76
|
: undefined;
|
|
77
77
|
if (!check) {
|
|
78
|
-
// Groups carry no `$type`, so one that names a type the schema does not know is a mistake. Left out, it would
|
|
79
|
-
// go unreported as soon as another entry fails, because those errors replace the schema's own.
|
|
80
|
-
if (type !== undefined) {
|
|
81
|
-
errors.push({
|
|
82
|
-
path: `${path}/$type`,
|
|
83
|
-
message: `Unknown $type "${String(type)}"`,
|
|
84
|
-
expected: 'component or a design token type',
|
|
85
|
-
actual: String(type),
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
78
|
errors.push(...entryErrors(value, path));
|
|
89
79
|
}
|
|
90
80
|
else if (!check(value)) {
|