Perform model validation with schema

def validate_with_schema(self, model=None, context=None):
        """ Perform model validation with schema"""
        if self._schema is None or model is None:
            return

        result = self._schema.validate(
            model=model,
            context=context if self.use_context else None
        )
        return result