andrewbober / xsd2jsonschema

A pure JavaScript library for translating complex XML Schemas into JSON Schemas.
https://www.xsd2jsonschema.org
Apache License 2.0
47 stars 25 forks source link

<Import> tag feature #3

Closed anitha-sathish closed 5 years ago

anitha-sathish commented 6 years ago

Hello,

Hope the current version of xsd2jsonschema does not support tag meaning like creating multiples files for each imported schema while converting from xsd to json schema.

When can we expect this feature to be available tentatively? or any workarounds yo can suggest to get it done?

Regards Anitha

andrewbober commented 5 years ago

Hi anitha-sathish,

The \<import> tag has been implemented in v0.2.1. The conversion from XML Schema to JSON Schema does preserve the original file count and organization. For example, if an XML Schema consists of 10 related xsd files the resulting JSON Schema will also contain 10 related files.

Thanks, Andy