We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37b3a15 commit a11df6aCopy full SHA for a11df6a
1 file changed
pkg/goformation/generate/property.go
@@ -191,7 +191,7 @@ func (p Property) HasValidType() bool {
191
192
// IsPolymorphic checks whether a property can be multiple different types
193
func (p Property) IsPolymorphic() bool {
194
- 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
195
}
196
197
// IsPrimitive checks whether a property is a primitive type
0 commit comments