jgeXml icon indicating copy to clipboard operation
jgeXml copied to clipboard

Is schema in multiple docs supported?

Open yonyonson opened this issue 7 years ago • 3 comments

Am I correct that XSD that is spread over several documents are not supported at the moment? Basically you can put in <xs:include schemaLocation="local/path" /> in order to include referred XSD in a currect one.

Here is referance to the spec of xs:include: https://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs

Best regards, Petr

yonyonson avatar Nov 27 '17 13:11 yonyonson

Are you trying to convert such a split XSD into JSON Schema? If so, yes, this has not been tested so far. If you have an example you could share (by gist or attachment) I could take a look.

MikeRalphson avatar Nov 27 '17 13:11 MikeRalphson

Yes, that's what I am trying to do.

Here is an example: https://gist.github.com/yonyonson/723d94780d5c7a0e5438759a620bc94c I try to include kontaktinfo.xsd in the API-kontaktinfo.xsd and get one common JSON Schema out of it.

yonyonson avatar Nov 27 '17 14:11 yonyonson

This would be a nice feature😀 My XSDs werde splitted into several files. Do you see a chance for implementing that feature?

Thanks for your gerad work!

CarstenRilke avatar Nov 29 '17 16:11 CarstenRilke