nox-validation 1.7.7 → 1.7.8

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/helpers.js +1 -1
  2. package/package.json +1 -1
package/lib/helpers.js CHANGED
@@ -914,7 +914,7 @@ const buildNestedStructure = ({
914
914
  }
915
915
 
916
916
  const isArray =
917
- item.type === item?.schema_definition.type &&
917
+ item.type === item?.schema_definition?.type &&
918
918
  item.type === constants.types.ARRAY;
919
919
 
920
920
  let children = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {