Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Allow use parameters of type List<> in resources with properties where PrimitiveItemType = String and Type = List #321

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion generate/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ func (p Property) GoType(typename string, basename string, name string) string {

if p.IsList() {

if p.convertTypeToGo() != "" {
if p.convertTypeToGo() == "string" {
return "interface{}"
} else if p.convertTypeToGo() != "" {
return "[]" + p.convertTypeToGo()
}

Expand Down