From 0cf56d82477128faa26685a550a08724ffed5a5f Mon Sep 17 00:00:00 2001 From: Srikanth Chekuri Date: Fri, 9 Jun 2023 14:18:48 +0530 Subject: [PATCH] fix: allow unspecified key type --- pkg/query-service/model/v3/v3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/query-service/model/v3/v3.go b/pkg/query-service/model/v3/v3.go index d2f8f45fa5..e323f7e47c 100644 --- a/pkg/query-service/model/v3/v3.go +++ b/pkg/query-service/model/v3/v3.go @@ -293,7 +293,7 @@ func (a AttributeKey) Validate() error { if a.IsColumn { switch a.Type { - case AttributeKeyTypeResource, AttributeKeyTypeTag: + case AttributeKeyTypeResource, AttributeKeyTypeTag, AttributeKeyTypeUnspecified: break default: return fmt.Errorf("invalid attribute type: %s", a.Type)