fnogatz / xsd2json

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

Root element not correct translated #9

Closed fnogatz closed 9 years ago

fnogatz commented 9 years ago

The following example XSD does not create any JSON Schema:

<?xml version="1.0" ?>
<xs:schema>
  <xs:element name="pet">
    <xs:simpleType>
      <xs:restriction base="xs:string">
        <xs:enumeration value="dog" />
        <xs:enumeration value="cat" />
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
</xs:schema>