@hestia-earth/schema-validation 31.4.0 → 31.4.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/package.json +1 -1
- package/validate.js +1 -3
package/package.json
CHANGED
package/validate.js
CHANGED
|
@@ -78,9 +78,7 @@ var schemaData = function (_a) {
|
|
|
78
78
|
};
|
|
79
79
|
// using `verbose: true` includes data which we don't need
|
|
80
80
|
var cleanErrors = function (errors) {
|
|
81
|
-
return errors
|
|
82
|
-
.filter(function (error) { return !['if'].includes(error.keyword); })
|
|
83
|
-
.map(function (_a) {
|
|
81
|
+
return errors.map(function (_a) {
|
|
84
82
|
var data = _a.data, schema = _a.schema, parentSchema = _a.parentSchema, error = __rest(_a, ["data", "schema", "parentSchema"]);
|
|
85
83
|
return (__assign(__assign(__assign({}, error), (schema ? { schema: schemaData(schema) } : {})), (error.message === 'should NOT be valid' ? { schema: schema } : {})));
|
|
86
84
|
});
|