Converts a JSON schema to a Joi schema.