fix: allow unspecified key type

This commit is contained in:
Srikanth Chekuri 2023-06-09 14:18:48 +05:30
parent 99f863f444
commit 0cf56d8247

View File

@ -293,7 +293,7 @@ func (a AttributeKey) Validate() error {
if a.IsColumn { if a.IsColumn {
switch a.Type { switch a.Type {
case AttributeKeyTypeResource, AttributeKeyTypeTag: case AttributeKeyTypeResource, AttributeKeyTypeTag, AttributeKeyTypeUnspecified:
break break
default: default:
return fmt.Errorf("invalid attribute type: %s", a.Type) return fmt.Errorf("invalid attribute type: %s", a.Type)