From 62de9f327e7bb0a51a84f17afdd4a1950980d201 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 15 Jan 2021 15:45:42 +0300 Subject: [PATCH] [#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 --- pkg/core/object/fmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/object/fmt.go b/pkg/core/object/fmt.go index 5dc64af30..dacf79b42 100644 --- a/pkg/core/object/fmt.go +++ b/pkg/core/object/fmt.go @@ -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