joi.email() code example
Example: joi email validation regex
email: Joi.string().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net'] } })
email: Joi.string().email({ minDomainSegments: 2, tlds: { allow: ['com', 'net'] } })