-
Notifications
You must be signed in to change notification settings - Fork 78
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
Validate require, minOccurs, maxOccurs #103
Comments
I'm a bit sceptic about validation. Enums were required because they can't But validating occurence or facets would probably go to far, it is from my In this case I think it woule be better to generate a JSON Schema and to On Fri, Oct 9, 2015 at 8:57 PM, Alex Brausewetter [email protected]
|
Closing as |
if validation is out of scope what is the purpose of required property inside typeInfos ? thanx |
Some folks use this information for tasks like UI generation. This |
So ma it VERY clear in docs at least. To avoid more of us confused users. |
Great to see occurence support added in #101.
It would be good if jsonix could validate that required fields are present when unmarshalling an XML document. If a required field is missing, jsonix should throw an error.
This is already done for other things, like enum values: https://github.com/highsource/jsonix/blob/master/nodejs/scripts/jsonix.js#L2667
The text was updated successfully, but these errors were encountered: