You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
used with (hapi, standalone, ...): Express-joi 0.3.1
What are you trying to achieve or the steps to reproduce ?
tax: joi.object({
fee: joi
.number()
.integer()
.positive()
.required()
.error(
() =>
`property fee is required and it must be a positive integer number.`,
),
mdr: joi
.number()
.integer()
.positive()
.required()
.error(
() =>
`property mdr is required and it must be a positive integer number.`,
),
})
.required()
.error(() => `property tax is required`),
Request
"tax": {
"fee": -1,
"mdr": 0
}
Which result you had ?
"child "tax" fails because [property tax is required]"
What did you expect ?
child "tax" fails because [child "fee" fails because [property fee is required and it must be a positive integer number.]]
The text was updated successfully, but these errors were encountered:
Context
What are you trying to achieve or the steps to reproduce ?
Request
"tax": {
"fee": -1,
"mdr": 0
}
Which result you had ?
"child "tax" fails because [property tax is required]"
What did you expect ?
child "tax" fails because [child "fee" fails because [property fee is required and it must be a positive integer number.]]
The text was updated successfully, but these errors were encountered: