Model encapsulation of a Joi schema