Skip to content

Commit

Permalink
Merge pull request #194 from moihn/nillable-support
Browse files Browse the repository at this point in the history
fix wrong Nillable field on XSDAttribute
  • Loading branch information
c4milo committed Feb 26, 2021
2 parents ef7ee60 + d5183d9 commit 12cf455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types_tmpl.go
Expand Up @@ -46,7 +46,7 @@ var typesTmpl = `
{{range .}}
{{if .Doc}} {{.Doc | comment}} {{end}}
{{ if ne .Type "" }}
{{ normalize .Name | makeFieldPublic}} {{toGoType .Type .Nillable}} ` + "`" + `xml:"{{.Name}},attr,omitempty" json:"{{.Name}},omitempty"` + "`" + `
{{ normalize .Name | makeFieldPublic}} {{toGoType .Type false}} ` + "`" + `xml:"{{.Name}},attr,omitempty" json:"{{.Name}},omitempty"` + "`" + `
{{ else }}
{{ normalize .Name | makeFieldPublic}} string ` + "`" + `xml:"{{.Name}},attr,omitempty" json:"{{.Name}},omitempty"` + "`" + `
{{ end }}
Expand Down

0 comments on commit 12cf455

Please sign in to comment.