Validator to validate a model against a json schema.