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

Options for xsd2json? #21

Open
PiQ99 opened this issue Mar 17, 2015 · 3 comments
Open

Options for xsd2json? #21

PiQ99 opened this issue Mar 17, 2015 · 3 comments

Comments

@PiQ99
Copy link

PiQ99 commented Mar 17, 2015

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!

@fnogatz
Copy link
Owner

fnogatz commented Mar 17, 2015

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

@PiQ99
Copy link
Author

PiQ99 commented Mar 17, 2015

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/

@fnogatz
Copy link
Owner

fnogatz commented Mar 17, 2015

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.

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

2 participants