joi number of digits code example Example: joi number of digits Joi.string().length(9).regex(/^\d+$/);