highsource / highsource/jsonix-schema-compiler
Why does a simple element in xsd result in an object in the json schema?
- Dominant language
- Java
- Stars
- 138
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Example:
```
``
```
Gives the following. Why is "type" an object and not just the value type:
```
`"mobileAppVer":{
"title":"mobileAppVer",
"allOf":[
{
"type":"object",
"properties":{
"name":{
"$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/QName"
},
"value":{
"$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string"
}
},
"elementName":{
"localPart":"MobileAppVer",
"namespaceURI":""
}
}
],
"propertyType":"elementRef",
"elementName":{
"localPart":"MobileAppVer",
"namespaceURI":""
}
},`
```
And for an xsd with no target namespace why is the localPart & namespaceURI needed?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.