-
Notifications
You must be signed in to change notification settings - Fork 76
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
Include multiplicity in mapping files #33
Comments
This is not exactly the scope of Jsonix. Jsonix focuses on XML-JS Having said that, I don't mind including it. The problem is, however, that I actually don't know any othe JS-XSD parser at all :) But what I wouldn't like to do is making Jsonix validate things. This may On Mon, Sep 22, 2014 at 5:00 PM, Sebastian Barth notifications@github.com
|
It's a big plus of Jsonix that you have a subset of XSD information as mappings in JS. Though I don't completely understand what you wrote about the XML problem I found another reason that could be interesting for future usecases beyond XML-JS transformation, too:
I could not find any Java source code in this repo. Any plans about opening the source for us? |
Java source code? Well of course it is open. :) I'll try to do the multiplicity. I think the idea is reasonable. But as I On Mon, Sep 29, 2014 at 12:17 PM, Sebastian Barth notifications@github.com
|
Moved to highsource/jsonix-schema-compiler#23. |
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?
The text was updated successfully, but these errors were encountered: