-
Notifications
You must be signed in to change notification settings - Fork 38
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
Why does a simple element in xsd result in an object in the json schema? #63
Comments
Because of the You can either remove |
Depends what you are referring to. Jsonix Schema Compiler generates Jsonix Mappings and JSON Schema. JSON Schema is experimental. It contains a few properties which are not standard JSON Schema properties (like In the Jsonix Mappings you get string if namespace matches the default namespace and an object with local name and namespace URI if it does not match. So if you have such a structure in the Jsonix Mappingsm, check your Default element namespace is calculated based on the most popular namespace of your elements. |
Thanks - I changed to nillable="false" and now I get:
This is much closer to what I need. Two issues:
With 1) and 2) fixed the output would be:
|
|
Example:
Gives the following. Why is "type" an object and not just the value type:
And for an xsd with no target namespace why is the localPart & namespaceURI needed?
The text was updated successfully, but these errors were encountered: