def validate(self, value, add_comments=False, schema_name="<STR_LIT>"):
validator = self.get_schema_validator(schema_name)<EOL>error_messages = []<EOL>if isinstance(value, list):<EOL><INDENT>for d in value:<EOL><INDENT>error_messages += self._validate(d, validator, add_comments, schema_name)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>error_messages = self._validate(value, validator, add_comments, schema_name)<EOL><DEDENT>return error_messages<EOL>
verbose - also return the jsonschema error details