forked from loafle/openapi-generator-original
add xml attr support in go client (#867)
This commit is contained in:
parent
6a47d49ee8
commit
4a5bd50202
@ -35,7 +35,7 @@ type {{classname}} struct {
|
|||||||
{{#description}}
|
{{#description}}
|
||||||
// {{{description}}}
|
// {{{description}}}
|
||||||
{{/description}}
|
{{/description}}
|
||||||
{{name}} {{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}"{{/withXml}}`
|
{{name}} {{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}`
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
}
|
}
|
||||||
{{/isEnum}}
|
{{/isEnum}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user