我搜索了很多次,但没有找到允许在Joi中进行多类型验证的东西
Joi
链接:https://github.com/hapijs/joi
我想使用这样的东西:
validate: { type: joi.or([ joi.string(), joi.array(), ]) };
https://stackoverflow.com/questions/41468779
相似问题