`
The corresponding Java class has ben generated using xjc:
`@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CancelRequest", propOrder = {
"orderID"
})
@XmlRootElement(name = "CancelRequest")
public class CancelRequest
implements Serializable, ToString
{
private final static long serialVersionUID = -1L;
@XmlElement(name = "OrderID", required = true)
protected String orderID;
@XmlAttribute(name = "version")
protected String version;
rest of class are getters and setters`
The code generated by Swagger is
` "CancelRequest": {
"type": "object",
"required": [
"orderID"
],
"properties": {
"orderID": {
"type": "string",
"xml": {
"name": "OrderID"
}
},
"version": {
"type": "string"
}
},
"xml": {
"name": "CancelRequest"
}
},`
There are no XML Object values generated for version. I would have expected here:
` "xml": {
"attribute":true
}`
Since version is an attribute.
I have the following XML: `