def validate_with_schema(self, model=None, context=None):
if self._schema is None or model is None:<EOL><INDENT>return<EOL><DEDENT>result = self._schema.validate(<EOL>model=model,<EOL>context=context if self.use_context else None<EOL>)<EOL>return result<EOL>
Perform model validation with schema