From 3ef3c39daa156d41b6c36a77675f610051565614 Mon Sep 17 00:00:00 2001 From: Sergey Date: Fri, 28 Oct 2022 17:28:34 +0500 Subject: [PATCH] [GO-444] Just remove maxCount validation for String value --- core/relation/service.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/relation/service.go b/core/relation/service.go index 459932cdb..0e2ef2c4a 100644 --- a/core/relation/service.go +++ b/core/relation/service.go @@ -316,9 +316,6 @@ func (s *service) ValidateFormat(key string, v *types.Value) error { case model.RelationFormat_file, model.RelationFormat_object: switch s := v.Kind.(type) { case *types.Value_StringValue: - if r.MaxCount != 1 { - return fmt.Errorf("incorrect type: %T instead of list(maxCount!=1)", v.Kind) - } return nil case *types.Value_ListValue: if r.MaxCount > 0 && len(s.ListValue.Values) > int(r.MaxCount) {