-
Notifications
You must be signed in to change notification settings - Fork 111
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
xsdgen on tableau api 3.6 xsd fails to generate #99
Comments
I haven't looked to deeply into this, but I looked at the output from an
which is in the output. But this
shouldn't be there at all. That's a bug. It shouldn't be
However, there should be some passes that remove anonymous types that can just be put directly in struct definitions, so that shouldn't exist either. The
Even that is a little ugly. |
I also saw this issue when generating code from the ONIX 3.0 spec: https://www.editeur.org/93/Release-3.0-Downloads/ Most types were generated as type string instead of their (existing but not used) more complex types and a lot of anonymous types were left unreferenced. I went through and manually repaired about 1k worth of references to use their more specific type but I'm certain this could be done in the tool if it was clear on how it was supposed to happen. |
When trying to generate the schema structures for the Tableau 3.6. api, the generation is invalid.
Full xsd is available here: https://help.tableau.com/samples/en-us/rest_api/ts-api_3_6.xsd
More specifically the Lastday in this monthDay attribute is generated as 'type string', while it should have been 'type LastDay string'
I suspect a problem with the union combining 2 different datatypes 'xs:integer' and 'xs:string', but I have not investigated in detail. Other union combining 'xs:integer' with 'xs:integer' works fine.
Currently using this workaround, as there seems to be only 1 xsdSimpleType with a blanc name:
The text was updated successfully, but these errors were encountered: