@contentful/experience-design-system-types 2.41.1-dev-build-a14ed2ff.0 → 2.41.1-dev-build-ca05819e.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 +1 -2
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/cdf/validate.js
CHANGED
|
@@ -75,8 +75,7 @@ function entryErrors(node, prefix) {
|
|
|
75
75
|
? validateTokenEntry
|
|
76
76
|
: undefined;
|
|
77
77
|
if (!check) {
|
|
78
|
-
// Groups carry no `$type`, so
|
|
79
|
-
// go unreported as soon as another entry fails, because those errors replace the schema's own.
|
|
78
|
+
// Groups carry no `$type`, so a node that names one the schema does not know is a mistake.
|
|
80
79
|
if (type !== undefined) {
|
|
81
80
|
errors.push({
|
|
82
81
|
path: `${path}/$type`,
|