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
I'm trying to generate structs for go from the schema provided by Tableau (link below), but I'm getting bad results for this XSD version. For comparison, I'm using c# sourcecode generated with xsd (from mono).
The result structures are different than expected.
Description
I'm trying to generate structs for go from the schema provided by Tableau (link below), but I'm getting bad results for this XSD version. For comparison, I'm using c# sourcecode generated with xsd (from mono).
The result structures are different than expected.
Steps to reproduce the issue:
Describe the results you received:
In the generated result, there is a
Status
string in theSiteType
struct.https://gist.github.com/sumia01/f15ee5589f4a020b63bd0e016ebaf5b6#file-schema-go-L1511
But it shouldn't be there, see the c# reference:
https://gist.github.com/sumia01/f551985805e2e84c9a83cee1e9ef59f8#file-tableau_3_17-cs-L2960
And here is the type definition part from the original xsd, I can't find any reference for status here:
https://gist.github.com/sumia01/f15ee5589f4a020b63bd0e016ebaf5b6#file-ts-api_3_17-xsd-L1797
One more strange behaviour found here. If I comment the following part from xsd (https://gist.github.com/sumia01/f15ee5589f4a020b63bd0e016ebaf5b6#file-ts-api_3_17-xsd-L1418)
then it's not generated into the SiteType struct. But I don't understand the connection here.
Describe the results you expected:
I'd like to get the same result as in the c# file
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
The text was updated successfully, but these errors were encountered: