-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
xsd:group generates incorrect output in Go #33
Comments
I think that the problem is more subtle than this and that the proper solution is not to inline the group.
|
Description
When a complex type contains an xsd:group reference, the generated
code produces a new struct type for the group rather than expanding
the group content in the original type. Also, no xml:"..." mapping code is
generated, so the group is not parsed from the XML.
I'd prefer it that the group did not yield a new type (as it is just
syntactic sugar inside the schema rather than a real hierarchical
component).
Steps to reproduce the issue:
Using the following test schema:
Describe the results you received:
Generated code is
Describe the results you expected:
Something like:
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
MacOS 11.6 Big Sur on Mac Book Pro
The text was updated successfully, but these errors were encountered: