diff --git a/pkg/goformation/generate/property.go b/pkg/goformation/generate/property.go index 00b13877a1..209508c9e7 100644 --- a/pkg/goformation/generate/property.go +++ b/pkg/goformation/generate/property.go @@ -191,7 +191,7 @@ func (p Property) HasValidType() bool { // IsPolymorphic checks whether a property can be multiple different types func (p Property) IsPolymorphic() bool { - return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 + return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 } // IsPrimitive checks whether a property is a primitive type