cshenfu
2023-05-23 ce62edd3b2f2598fc3610d3f24e4b5929db69f56
1
2
3
4
5
6
7
module.exports = function (value = {}, schema = {}) {
  const validateRes = this.validator.validate(value, schema)
  if (validateRes) {
    delete validateRes.schemaKey
    throw validateRes
  }
}