docs: def validate(self, data, schema, **kwargs):
          """Validate data using schema with ``JSONResolver``."""
          if not isinstance(schema, dict):
              schema = {'$ref': schema}
          return validate(
              data,
              schema,
              resolver=self.ref_resolver_cls.from_schema(schema),
              types=self.app.config.get('RECORDS_VALIDATION_TYPES', {}),
              **kwargs
          )