Error in openapi document for “Add gadget to dashboard”:
“DashboardGadgetPosition”:{“additionalProperties”:false,“description”:“Details of a gadget position.”,“properties”:{“The column position of the gadget.”:{“format”:“int32”,“type”:“integer”},“The row position of the gadget.”:{“format”:“int32”,“type”:“integer”}},“required”:[“The column position of the gadget.”,“The row position of the gadget.”],“type”:“object”,“writeOnly”:true}
According to example “The column position of the gadget.” should be “column” and ,“The row position of the gadget.” should be “row”.
Is there some better place to report this?
Hi @ROECKELEINWolfgang,
Yes, it’s a spec bug. Both swagger-v3.v3.json and swagger.v3.json carry the same DashboardGadgetPosition, and it’s the only schema in the file with spaces in its property names.
Ran it on a test site. Sending column and row gives a 200 and the GET returns position {row, column}, while the spec’s keys get a 400, Invalid request payload.
Easy to patch before codegen. Rename the two keys in properties and in required:
"DashboardGadgetPosition": {
"additionalProperties": false,
"description": "Details of a gadget position.",
"properties": {
"column": { "format": "int32", "type": "integer" },
"row": { "format": "int32", "type": "integer" }
},
"required": ["column", "row"],
"type": "object",
"writeOnly": true
}
DashboardGadget, DashboardGadgetSettings and DashboardGadgetUpdateRequest all reference it, so the rename covers them.
No existing ticket that I could find. The route Atlassian documents is Developer and Marketplace support at https://developer.atlassian.com/support, the Ecosystem Support Request option, which covers documented APIs. Spec bugs reported that way tend to come back as JRACLOUD bugs, e.g. JRACLOUD-96812 and JRACLOUD-96958, so that’s where to watch for it.
Thanks. I have created Jira Service Management now.