Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad type generation for xs:choice + maxOccurs="unbounded" #264

Open
wthorp opened this issue Feb 25, 2024 · 0 comments
Open

bad type generation for xs:choice + maxOccurs="unbounded" #264

wthorp opened this issue Feb 25, 2024 · 0 comments

Comments

@wthorp
Copy link

wthorp commented Feb 25, 2024

This appears to be working in the fixtures, but not in my use case.

From Sono's WSDL...

<xs:complexType name="mediaList">
...
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="mediaCollection" type="tns:mediaCollection"/>
    <xs:element name="mediaMetadata" type="tns:mediaMetadata"/>
 </xs:choice>
</xs:complexType>

generates

type MediaList struct {
...
  MediaCollection *MediaCollection `xml:"mediaCollection,omitempty" json:"mediaCollection,omitempty"`
  MediaMetadata *MediaMetadata `xml:"mediaMetadata,omitempty" json:"mediaMetadata,omitempty"`
}
% gowsdl -v
🍀
% go version
go version go1.21.4 darwin/arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant