From 625f18c1e6de0f0f1f761bb63427feb826ec7152 Mon Sep 17 00:00:00 2001 From: Assem Hafez Date: Fri, 26 Sep 2025 21:31:08 +0200 Subject: [PATCH] fix search attribute error message typo --- common/elasticsearch/validator/searchAttrValidator.go | 2 +- common/elasticsearch/validator/searchAttrValidator_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/elasticsearch/validator/searchAttrValidator.go b/common/elasticsearch/validator/searchAttrValidator.go index 29a551e5cfd..8af5aa4cb6d 100644 --- a/common/elasticsearch/validator/searchAttrValidator.go +++ b/common/elasticsearch/validator/searchAttrValidator.go @@ -103,7 +103,7 @@ func (sv *SearchAttributesValidator) ValidateSearchAttributes(input *types.Searc if definition.IsSystemIndexedKey(key) { sv.logger.WithTags(tag.ESKey(key), tag.WorkflowDomainName(domain)). Error("illegal update of system reserved attribute") - return &types.BadRequestError{Message: fmt.Sprintf("%s is read-only Cadence reservered attribute", key)} + return &types.BadRequestError{Message: fmt.Sprintf("%s is read-only Cadence reserved attribute", key)} } // verify: size of single value <= limit if len(val) > sv.searchAttributesSizeOfValueLimit(domain) { diff --git a/common/elasticsearch/validator/searchAttrValidator_test.go b/common/elasticsearch/validator/searchAttrValidator_test.go index 84f09d5c4be..400237356ba 100644 --- a/common/elasticsearch/validator/searchAttrValidator_test.go +++ b/common/elasticsearch/validator/searchAttrValidator_test.go @@ -103,7 +103,7 @@ func (s *searchAttributesValidatorSuite) TestValidateSearchAttributes() { } attr.IndexedFields = fields err = validator.ValidateSearchAttributes(attr, domain) - s.Equal(`StartTime is read-only Cadence reservered attribute`, err.Error()) + s.Equal(`StartTime is read-only Cadence reserved attribute`, err.Error()) fields = map[string][]byte{ "CustomKeywordField": []byte(`"123456"`),