使用 Joi 验证包含自定义键的字典的最佳方法是什么?
var objToValidate = {
"a": { name: 1 }
"type": { name: 3 },
... // many other properties
}
var schema = ?
使用 Joi 验证包含自定义键的字典的最佳方法是什么?
var objToValidate = {
"a": { name: 1 }
"type": { name: 3 },
... // many other properties
}
var schema = ?