-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
This JSON Schema:
"Foo": {
"title": "Foo",
"type": "object",
"properties": {
"uris": {
"type": "array",
"items": {
"$ref": "#/definitions/Bar"
}
}
}
}
Yields this XSD:
<complexType name="Foo">
<sequence>
<element minOccurs="0" name="uris">
<complexType>
<sequence>
<element maxOccurs="unbounded"
minOccurs="0"
name="Bar"
type="x:Bar"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
But ideally I'd have an option to make it render:
<complexType name="Foo">
<sequence>
<element minOccurs="0" name="uris" type="x:Bar"/>
</sequence>
</complexType>
This would be more in line with both how protobuf's XML renderer library renders repeated elements and with what happens when I use Google's library to render a message into a JSON string and then use Jackson's XML data format to render that to XML.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels