mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-11 02:13:41 +09:00
Merge pull request #1591 from anytypeio/fix-remove-maxcount-validation-GO-444
[GO-444] Just remove maxCount validation for String value
This commit is contained in:
commit
78772c38c3
1 changed files with 0 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue