xsd2json icon indicating copy to clipboard operation
xsd2json copied to clipboard

Options for xsd2json?

Open PiQ99 opened this issue 10 years ago • 3 comments

Is there the possibility, to add option-parameters to xsd2json :-)? E.g. it would be nice, if the user could handle, if the result file should contain "$ref"s or not?!

Thanks again!

PiQ99 avatar Mar 17 '15 08:03 PiQ99

What do you mean by containing $ref or not? Could you please provide an example of two possible results, depending on your option?

fnogatz avatar Mar 17 '15 09:03 fnogatz

The example is the following. Just wanted maybe an option, so the user could decide, if he wants result number one (top) or number two (bottom) - I know, actually its right to resolve it to such a declaration with "$ref".

Example: http://jsfiddle.net/PiQ99/vz3mcm7g/1/

PiQ99 avatar Mar 17 '15 09:03 PiQ99

Okay, I will have a look at it. This flag would also prevent some hiccups as stated in #18 where you want to resolve a type that has not been included explicitly.

fnogatz avatar Mar 17 '15 09:03 fnogatz