jsons2xsd
JSON-Schema to XML schema converter written in JavaScript
Usage
After installation require / import the module and use it like this:
const XsdGenerator = require('jsons2xsd');
const jsonSchema = getJsonSchema();
const Generator = new XsdGenerator(jsonSchema);
const xsdString = Generator.convert().xmlString;
Not yet implemented
There is a bunch of features which are currently not implemented. Here is a list:
- References (
$ref property in JSON-Schema)
- Arrays on root level
- Different JSON-Schema Draft versions
- Custom XSD Namespacing (namespace is set to http://www.w3.org/2001/XMLSchema)