zhaoxing
2023-05-18 320cafdca2b0989aac74e502ee8983df2cf770f6
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
  }
}