Skip to content

Commit 49ed817

Browse files
rainkwanaustinvalle
andcommitted
Update internal/fwtype/static_collection_validation.go
Co-authored-by: Austin Valle <[email protected]>
1 parent ee81a4a commit 49ed817

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

internal/fwtype/static_collection_validation.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ func ReturnCollectionWithDynamicTypeDiag() diag.Diagnostic {
143143
// IsAllowedPrimitiveType checks if the given attr.Type is an allowed primitive type for resource identity.
144144
func IsAllowedPrimitiveType(typ attr.Type) bool {
145145
switch typ.(type) {
146-
case basetypes.BoolType,
147-
basetypes.Float64Type,
148-
basetypes.Float32Type,
149-
basetypes.Int64Type,
150-
basetypes.Int32Type,
151-
basetypes.NumberType,
152-
basetypes.StringType:
146+
case basetypes.BoolTypable,
147+
basetypes.Float64Typable,
148+
basetypes.Float32Typable,
149+
basetypes.Int64Typable,
150+
basetypes.Int32Typable,
151+
basetypes.NumberTypable,
152+
basetypes.StringTypable:
153153
return true
154154
default:
155155
return false

0 commit comments

Comments
 (0)