Open stckcrsh opened 8 years ago
There's no support yet for redefine
or override
. Handling them seems complicated if parsing some XML files that (using xsi
) refer to the redefined schema and some only refer to the original. That would allow completely different definitions for the namespace, and TypeScript module augmentations don't seem to support that. Parsing XML would still work, but types couldn't be represented properly in a TypeScript IDE. It could be made to work if both .xsd
files are always used together.
In my instance both are always used together.
Sorry i dont know if this is an issue or I am doing this completely wrong
I have two xsd files that i am trying to parse The first has some complex types basic stuff, but the second one has xs:redefine to alter the complex types from the first xsd
example base.xsd
extend.xsd
This is the resulting Typescript i get
As I said earlier this might not be an issue, but a problem with how things are done on my side. As some backstory we are upgrading the frontend on an old service that my company has to angular2. They do not want to update any of the server stuff (all the xsds) and i have to generate visualizations off this data that is returned and i do not wish to go through all the xsd files they have and manually try to get this data in.