Description
Jsonix generates mappings from XML schema definitions that might include information about multiplicity (optional, collection, mandatory, upper/lower bound) of member elements but doesn't include it in the mapping files. Only the information about being a collection is included. Including the information about multiplicity would allow to dynamically create user interfaces like input forms. Without this feature you still have to define a static code model that creates the Javascript object (and form fields; with information from the user interface) which only is ready to get marshalled. Information about multiplicity would make the intermediate model unnecessary.
Of course it would be much better to have a representation of the content datatype itself (e.g. constraints on strings and integers) as well. But this is much less important.
Is there a special reason why multiplicity is not part of the mapping files (yet)?
Are there any plans to include it?
Did I misunderstand something?
Do you know any other JS-XSD parser that parses multiplicity information?