def validate(self, data, schema, **kwargs):
if not isinstance(schema, dict):<EOL><INDENT>schema = {'<STR_LIT>': schema}<EOL><DEDENT>return validate(<EOL>data,<EOL>schema,<EOL>resolver=self.ref_resolver_cls.from_schema(schema),<EOL>types=self.app.config.get('<STR_LIT>', {}),<EOL>**kwargs<EOL>)<EOL>
Validate data using schema with ``JSONResolver``.