nox-validation 1.7.5 → 1.7.6

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.
Files changed (2) hide show
  1. package/lib/validate.js +4 -1
  2. package/package.json +1 -1
package/lib/validate.js CHANGED
@@ -540,7 +540,10 @@ const validateMetaRules = (
540
540
  if (!currentPath.includes(fPath)) {
541
541
  fPath = `${currentPath}.${fPath}`;
542
542
  }
543
- } else if (fPath !== currentPath) {
543
+ } else if (
544
+ fPath !== currentPath &&
545
+ fPath?.length < currentPath?.length
546
+ ) {
544
547
  fPath = currentPath;
545
548
  }
546
549
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {