xuri / xgen

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
BSD 3-Clause "New" or "Revised" License
318 stars 75 forks source link

Can support `extension`? #19

Open imxyb opened 3 years ago

imxyb commented 3 years ago

image such as this, the CurrentTerritoryCode is base in namespace avs:CurrentTerritoryCode, but the CurrentTerritoryCode in avs is: image the gen go code is: image is it incorrect?

alexandre-normand commented 2 years ago

I'm not totally clear on what this issue was about exactly since the screenshot for the generated code is for the base type and not the one that extends that base type which shouldn't affect how the base type is generated.

If the request was for support for extensions, some part of that was done recently in https://github.com/xuri/xgen/pull/36. I'd be inclined to say this issue is fixed and other issues with the XSD above should be reported as a new issue with an example (preferably as text that can be copy-pasted in tests).

Note that I'm not the project owner but I worked on the extension support and saw this issue that seemed related so I thought I should say something 😁 .