Currently working on translating a .xsd file into moddle compliant json.
This being a very time consuming and error prone activity. I am bound to make some mistakes.
Are there any facilities for transforming .xsd to moddle compliant json programatically?
And what schema does moddle actually use/accept?
And what about the use of datatypes such as xs:duration. How might this be incorporated into the json schema without manually breaking down the data-type into its singular elements. Is it possible to reference external definitions, such as xs:duration → XML Schema Date/Time Datatypes ?
What about internal referencing by use of $ref?
Without knowing exactly what schema moddle conforms to its a bit difficult to translate these complex xsd documents into compliant json without breaking them down into atomic parts…
Any pointers on this would be greatly appreciated!