@hestia-earth/schema-convert 30.2.0 → 30.2.1
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/json.js +1 -1
- package/package.json +1 -1
package/json.js
CHANGED
|
@@ -579,7 +579,7 @@ var convetToNode = function (schemas, params) { return function (data) {
|
|
|
579
579
|
return Object.keys(data)
|
|
580
580
|
.filter(utils_1.nonEmptyValue)
|
|
581
581
|
.map(function (type) {
|
|
582
|
-
return (0, exports.formatNode)(schemas, (0, schema_1.typeToSchemaType)(type), data[type], __assign(__assign({}, params), { existingNode: '@id' in data[type] }));
|
|
582
|
+
return (0, exports.formatNode)(schemas, (0, schema_1.typeToSchemaType)(type) || type, data[type], __assign(__assign({}, params), { existingNode: typeof data[type] === 'object' ? '@id' in data[type] : false }));
|
|
583
583
|
})
|
|
584
584
|
.filter(function (node) { return (0, exports.filterEmptyNode)(schemas, node); });
|
|
585
585
|
}; };
|