@hestia-earth/schema-convert 22.4.0 → 23.0.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.
- package/json.js +1 -1
- package/package.json +1 -1
package/json.js
CHANGED
|
@@ -203,7 +203,7 @@ var propertyInvalidFormat = function (schema, key, value, func) {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
var validateDuplicatedIdFields = function (schema, key, value) {
|
|
206
|
-
return typeof value === 'object' && 'id'
|
|
206
|
+
return typeof value === 'object' && [value.id, value['@id']].every(function (v) { return !!v && nonEmptyCell(v); })
|
|
207
207
|
? (0, exports.throwCSVError)({
|
|
208
208
|
schema: schema.title,
|
|
209
209
|
message: 'duplicated-id-fields',
|