how does joi in nodejs batch parameter validation (an array is passed in)
add: {
schema: Joi.object({
app_key: Joi.string().min(10).max(40).required(),
money:Joi.number().min(0).required(),
record_time:Joi.string().required(),
type: Joi.number().required()
}),
options: {
// schema
allowUnknown: true,
// schema
stripUnknown: true,
//
language: {
any: {
required: "",
},
number: {
min: " {{limit}}",
max: " {{limit}}",
positive: "",
less: " {{limit}}",
greater: " {{limit}}"
},
string: {
alphanum: "",
min: " {{limit}} ",
max: " {{limit}} ",
},
object: {
with: " "{{peer}}"",
}
}
}