Closed vmarannan closed 1 year ago
I'm getting same with v17.8.1 and v17.8.0 and the same schema:
Joi.object({
email: Joi.string()
.email({ tlds: { allow: false } })
})
Fixed by pinning at 17.7.1.
Bug must have been caused by https://github.com/hapijs/joi/pull/2909
This is fixed in 17.8.2.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Schema
Data To Validate
Result
What result did you expect?
Validate without error as stated on https://joi.dev/api/?v=17.8.1#stringemailoptions