[#319] Do not return payload formatting error on regular objects

Regular objects by definition have valid payload, so there should
be no errors.

Related to #302

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-01-15 15:45:42 +03:00 committed by Alex Vanin
parent f311be3ab6
commit 62de9f327e

View file

@ -158,7 +158,7 @@ func (v *FormatValidator) ValidateContent(o *Object) error {
}
}
default:
return errors.Errorf("(%T) unsupported object type %s", v, o.Type())
// ignore all other object types, they do not need payload formatting
}
return nil