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
Description
If XSD contains xs:union in type definition, it produces struct that contains both values. As result, XML fails to be parsed Steps to reproduce the issue:
Possible solution
I have no clue, how to solve it as unions of types are not supported by Golang (not sure about other languages).
What worked for me: Changing Integerorempty to int through whole report.go file (using Search & Replace) fixes this issue
I assume some option to force some types to be substituted as other types would be the solution. See #10 issue. This option would solve this issue too (interpret xsd "integer" as int, int64 or big.Int as user whats it to)
The text was updated successfully, but these errors were encountered:
Description
If XSD contains xs:union in type definition, it produces struct that contains both values. As result, XML fails to be parsed
Steps to reproduce the issue:
Describe the results you received:
go test produces the following:
Describe the results you expected:
I have expected to parse file successfully
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
MacOS Monterey
Possible solution
I have no clue, how to solve it as unions of types are not supported by Golang (not sure about other languages).
What worked for me: Changing Integerorempty to int through whole report.go file (using Search & Replace) fixes this issue
I assume some option to force some types to be substituted as other types would be the solution. See #10 issue. This option would solve this issue too (interpret xsd "integer" as int, int64 or big.Int as user whats it to)
The text was updated successfully, but these errors were encountered: