add model support for Joi < 2.0