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
While generating Go XML objects with xgen, I have been noticing that omitempty is not being added to elements that have minOccurs='0' when those elements should be optional. I have also noticed that when an element contains <xsd:sequence maxOccurs='unbounded'> it is not producing an array of the element inside the sequence to allow for multiples of the element.
Description
While generating Go XML objects with xgen, I have been noticing that omitempty is not being added to elements that have minOccurs='0' when those elements should be optional. I have also noticed that when an element contains
<xsd:sequence maxOccurs='unbounded'>
it is not producing an array of the element inside the sequence to allow for multiples of the element.Steps to reproduce the issue:
xgen -i xsd/example.xsd -p example_xgen -o xgen_output -l Go
Describe the results you received:
The results I received:
MetaData is not omitempty and DatumItem in Metadata, only allows for one DatumItem when I should be able to have multiple.
Describe the results you expected:
MetaData is optional and you can have multiple DatumItems in MetaData.
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
OSX version 12.3
The text was updated successfully, but these errors were encountered: