@extrahorizon/exh-cli 1.6.0 → 1.6.1-feat-42-c1c6f34

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.
@@ -192,9 +192,11 @@ function getIdInObjectArrayErrors(properties, path = []) {
192
192
  if ('id' in value.items.properties) {
193
193
  pathsWithIdInArray.push([...path, `${name}.items.properties`, 'id'].join('.'));
194
194
  }
195
- pathsWithIdInArray.push(...getIdInObjectArrayErrors(value.items.properties, [...path, `${name}.items.properties`]));
195
+ if (value.items.properties) {
196
+ pathsWithIdInArray.push(...getIdInObjectArrayErrors(value.items.properties, [...path, `${name}.items.properties`]));
197
+ }
196
198
  }
197
- if (value.type === 'object') {
199
+ if (value.type === 'object' && value.properties) {
198
200
  pathsWithIdInArray.push(...getIdInObjectArrayErrors(value.properties, [...path, `${name}.properties`]));
199
201
  }
200
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/exh-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.1-feat-42-c1c6f34",
4
4
  "main": "build/index.js",
5
5
  "exports": "./build/index.js",
6
6
  "license": "MIT",