Closed albanm closed 7 years ago
Did the first step: I wrote a node wrapper and published the xsd2json module on npm.
xs:include
and remote XSD given by URLs are now supported in the includes branch. Will merge into master once xs:import
is implemented too.
Attempt to match the fork of this PR with the latest xsd2json version: MGDIS/xsd2json#1
Since both versions diverged too much and my initial pull request to adapt the interface changes into the fork got ignored, I will close here. Thank you for putting time into your fork. I hope, sometime both versions are similar in respect of their features :)
Hello,
First of all: I absolutely don't expect you to accept this PR as it is.
It contains a whole new node.js CLI program that wraps around your original prolog program in an attempt to fix the limitations I encountered. You can have a look at the readme for instructions on how to test it.
Most of it you will probably consider dirty workarounds, but I am quite in a hurry to validate the feasibility of XSD->JSON schema for my company. And I need support both for inclusions and type extensions. I will be glad if my code shrinks when your program makes progress.
Of particular interest for you: the test directory contains a small set of XSDs with a good overview of inclusions and extensions test cases.
Thanks