12
// populated.
13
// nolint:revive // cognitive-complexity is high but justified to keep each case together for readability.
15
>
if len(links) > maxAllowedLinks {
16
return serviceerror.NewInvalidArgumentf("cannot attach more than %d links per request, got %d", maxAllowedLinks, len(links))
17
}
20
>
return serviceerror.NewInvalidArgumentf("link exceeds allowed size of %d, got %d", maxSize, l.Size())
validator.go
21
>
}
22
switch t := l.Variant.(type) {
23
case *commonpb.Link_WorkflowEvent_: