This commit is contained in:
2025-03-28 16:27:26 +08:00
parent 587f29f707
commit e285692d9c
1626 changed files with 6943 additions and 62523 deletions
@@ -0,0 +1,7 @@
module.exports = function (value = {}, schema = {}) {
const validateRes = this.validator.validate(value, schema)
if (validateRes) {
delete validateRes.schemaKey
throw validateRes
}
}