fnogatz / xsd2json

Translate XML Schema into equivalent JSON Schema
MIT License
149 stars 28 forks source link

xmlns not used #59

Closed fnogatz closed 7 years ago

fnogatz commented 7 years ago

The following XSD is perfectly valid:

<schema xmlns="http://www.w3.org/2001/XMLSchema">
  <element name="dog" type="string" />
</schema>

Unlike using the same with explicit xs: prefix namespace, it returns:

{
  "$ref":"#/definitions/string"
}