@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.
@@ -643,17 +643,14 @@ var getInvalidProperty = function (error) {
643
643
  }
644
644
  };
645
645
  var getControlPath = function (error) {
646
- var dataPath = error.dataPath;
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) {