1👍
✅
To customize your error output, you can override is_valid
method of the resource itself.
MyResource(ModelRecource):
def is_valid(self, bundle):
errors = self._meta.validation.is_valid(bundle, bundle.request)
if errors:
bundle.errors['errors'] = [errors]
return False
return True
Source:stackexchange.com