highsource / highsource/jsonix-schema-compiler

Why does a simple element in xsd result in an object in the json schema?

Open
#63 4 comments 0 reactions 1 assignee Claimed by @highsource View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.