@overturebio-stack/lectern-client
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -270,3 +270,3 @@ "use strict"; | ||
if (invalidValues.length !== 0) { | ||
const info = Object.assign({}, range); | ||
const info = Object.assign({ value: invalidValues }, range); | ||
return buildError(schema_entities_1.SchemaValidationErrorTypes.INVALID_BY_RANGE, field.name, index, info); | ||
@@ -286,2 +286,3 @@ } | ||
message: scriptResult.message, | ||
value: rec[field.name] | ||
}); | ||
@@ -318,4 +319,5 @@ } | ||
const invalidValues = recordFieldValues.filter(v => validation.isInvalidFieldType(field.valueType, v)); | ||
const info = { value: invalidValues }; | ||
if (invalidValues.length !== 0) { | ||
return buildError(schema_entities_1.SchemaValidationErrorTypes.INVALID_FIELD_VALUE_TYPE, field.name, index); | ||
return buildError(schema_entities_1.SchemaValidationErrorTypes.INVALID_FIELD_VALUE_TYPE, field.name, index, info); | ||
} | ||
@@ -322,0 +324,0 @@ return undefined; |
{ | ||
"name": "@overturebio-stack/lectern-client", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "lib/**/*" |
Sorry, the diff of this file is not supported yet
142216
1548