@jsonforms/core 3.1.0-beta.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/lib/jsonforms-core.cjs.js +2 -5
- package/lib/jsonforms-core.cjs.js.map +1 -1
- package/lib/jsonforms-core.esm.js +2 -5
- package/lib/jsonforms-core.esm.js.map +1 -1
- package/lib/util/renderer.d.ts +1 -0
- package/package.json +2 -2
- package/src/reducers/core.ts +7 -8
- package/src/util/renderer.ts +1 -0
|
@@ -643,17 +643,14 @@ var getInvalidProperty = function (error) {
|
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
var getControlPath = function (error) {
|
|
646
|
-
var
|
|
647
|
-
if (dataPath) {
|
|
648
|
-
return dataPath.replace(/\//g, '.').substr(1);
|
|
649
|
-
}
|
|
650
|
-
var controlPath = error.instancePath;
|
|
646
|
+
var controlPath = error.dataPath || error.instancePath || '';
|
|
651
647
|
controlPath = controlPath.replace(/\//g, '.');
|
|
652
648
|
var invalidProperty = getInvalidProperty(error);
|
|
653
649
|
if (invalidProperty !== undefined && !controlPath.endsWith(invalidProperty)) {
|
|
654
650
|
controlPath = controlPath + "." + invalidProperty;
|
|
655
651
|
}
|
|
656
652
|
controlPath = controlPath.replace(/^./, '');
|
|
653
|
+
controlPath = decode(controlPath);
|
|
657
654
|
return controlPath;
|
|
658
655
|
};
|
|
659
656
|
var errorsAt = function (instancePath, schema, matchPath) {
|