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
Just look at the code of OnElement method to see that this is true.
Steps to reproduce the issue:
Copy the above XSD to a blank file (minimal.xsd)
Run xgen -l Go -i minimal.xsd
Describe the results you received:
With the xgen version at commit d0691b7, there is no difference in the output, but the problem is still there. It is just perceived after, for example, the changes made in #87 and #89. With those changes, this will be the output received:
// Code generated by xgen. DO NOT EDIT.package schema
// SomeElement ...typeSomeElementstring// SomeSimpleType ...typeSomeSimpleTypeinterface{}
Describe the results you expected:
And then, this will be the expected output:
// Code generated by xgen. DO NOT EDIT.package schema
// SomeElement ...typeSomeElement*SomeElement// SomeSimpleType ...typeSomeSimpleTypestring
Output of go version:
go version go1.24.0 linux/amd64
xgen version or commit ID:
xgen version: 0.1.0
The text was updated successfully, but these errors were encountered:
Description
If an
<element>
is outside a<complexType>
element, it is pushed twice. Like the following example:Just look at the code of
OnElement
method to see that this is true.Steps to reproduce the issue:
minimal.xsd
)xgen -l Go -i minimal.xsd
Describe the results you received:
With the xgen version at commit d0691b7, there is no difference in the output, but the problem is still there. It is just perceived after, for example, the changes made in #87 and #89. With those changes, this will be the output received:
Describe the results you expected:
And then, this will be the expected output:
Output of
go version
:xgen version or commit ID:
The text was updated successfully, but these errors were encountered: