You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And that AcctHolderType points to nothing, and, to be honest, not sure if it should generate a type or a string or it is that the XSD needs to declare its type there.
Describe the results you received:
type AccountHolderType struct {
XMLName xml.Name xml:"AccountHolder_Type"
Individual *NameReportableSellerType xml:"Individual"
Organisation *OrganisationPartyType xml:"Organisation"
AcctHolderType *AcctHolderType xml:"AcctHolderType"
} Describe the results you expected:
Not really sure what to expect, but code does not compile as there is no AcctHolderType type declared Output of go version:
Description
I am using xgen to generate code in go.
The xsd extract is:
<xsd:complexType name="AccountHolder_Type">
xsd:sequence
xsd:choice
<xsd:element name="Individual" type="dpi:NameReportableSeller_Type"/>
xsd:sequence
<xsd:element name="Organisation" type="dpi:OrganisationParty_Type"/>
<xsd:element name="AcctHolderType"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
and the code generated for that Type is:
type AccountHolderType struct {
XMLName xml.Name
xml:"AccountHolder_Type"
Individual *NameReportableSellerType
xml:"Individual"
Organisation *OrganisationPartyType
xml:"Organisation"
AcctHolderType *AcctHolderType
xml:"AcctHolderType"
}
And that AcctHolderType points to nothing, and, to be honest, not sure if it should generate a type or a string or it is that the XSD needs to declare its type there.
Steps to reproduce the issue:
Describe the results you received:
type AccountHolderType struct {
XMLName xml.Name
xml:"AccountHolder_Type"
Individual *NameReportableSellerType
xml:"Individual"
Organisation *OrganisationPartyType
xml:"Organisation"
AcctHolderType *AcctHolderType
xml:"AcctHolderType"
}
Describe the results you expected:
Not really sure what to expect, but code does not compile as there is no AcctHolderType type declared
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
Fedora35
The text was updated successfully, but these errors were encountered: