公告板
版本库
filestore
活动
搜索
登录
main
/
chatgpt-AI
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
change num bug
cshenfu
2023-06-14
de93aa62c83d6afb9f70cd5a22838375db0a8cbc
[chatgpt-AI.git]
/
uni_modules
/
uni-id-pages
/
uniCloud
/
cloudfunctions
/
uni-id-co
/
middleware
/
validate.js
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
}
}