Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is schema in multiple docs supported? #8

Open
yonyonson opened this issue Nov 27, 2017 · 3 comments
Open

Is schema in multiple docs supported? #8

yonyonson opened this issue Nov 27, 2017 · 3 comments
Assignees

Comments

@yonyonson
Copy link

yonyonson commented Nov 27, 2017

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 yonyonson changed the title Is schema in several docs supported? Is schema in multiple docs supported? Nov 27, 2017
@MikeRalphson
Copy link
Collaborator

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 MikeRalphson self-assigned this Nov 27, 2017
@yonyonson
Copy link
Author

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.

@CarstenRilke
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants