jsonix-schema-compiler icon indicating copy to clipboard operation
jsonix-schema-compiler copied to clipboard

Does this support XSD's that have an include statement in them?

Open joebaldwin95 opened this issue 9 years ago • 3 comments
trafficstars

Hi,

I have an xsd that references another XSD thats contains the types for the main schema, will this allow me to generate a JSON schema for the main schema without ignoring the include in the XSD.

Thanks, Joe

joebaldwin95 avatar Sep 28 '16 15:09 joebaldwin95

Sure, imports and includes do work.

Am 28.09.2016 um 17:08 schrieb Joe Baldwin [email protected]:

Hi,

I have an xsd that references another XSD thats contains the types for the main schema, will this allow me to generate a JSON schema for the main schema without ignoring the include in the XSD.

Thanks, Joe

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

highsource avatar Sep 28 '16 15:09 highsource

Thanks for the reply. I did try but no luck.

-jar jsonix-schema-compiler-full-2.3.9.jar -generateJsonSchema -d mappings MAIN.xsd

joebaldwin95 avatar Sep 28 '16 15:09 joebaldwin95

@joebaldwin95 It's hard to say anything without seeing your log output and maybe your schema.

I'm absolutely positive that imports and includes work. Here's a huge project which has lots of them:

https://github.com/highsource/ogc-schemas

highsource avatar Sep 28 '16 16:09 highsource