is there a way to make a substring and index of a file with Joi in order to validate one schema? I am working with Joi and I am stuck with one feature I would like to do.