Skip to content

Commit

Permalink
fix: allow unspecified key type
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv committed Jun 9, 2023
1 parent 99f863f commit 0cf56d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/query-service/model/v3/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0cf56d8

Please sign in to comment.