145
// - Empty list is acceptable for backwards compatibility to unset a custom search attribute.
146
if saType != enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST && isNonEmptyListValues(saPayload) {
147
>
invalidListValues.With(v.metricsHandler).Record(
validator.go
148
>
1,
149
>
metrics.NamespaceTag(namespace),
150
>
metrics.StringTag("search_attribute_type", saType.String()),
151
>
metrics.StringTag("allow_list", strconv.FormatBool(allowList)),
152
>
)
153
>
}
154
155
saValue, err := sadefs.DecodeValue(saPayload, saType, allowList)