number validation in joi code example Example: joi phone number validation joi.string().length(10).pattern(/^[0-9]+$/);