-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
Environment (Required on creation):
Camunda BPM Platform 7.16.0-alpha3
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
The Open API endpoint getIncidentsCount defines that the response is of type array.
Steps to reproduce (Required on creation):
Check the definition [1] of the Open API endpoint getIncidentsCount.
Observed Behavior (Required on creation):
The response is defined as an array.
Expected behavior (Required on creation):
The response should not be defined as an array.
Root Cause (Required on prioritization):
In [1] array = true is defined.
Solution Ideas (Optional):
Remove array = true from [1].
Hints (Optional):
Original Description
as per the docs, the response should be the standard:
{ "count": someNumber}
but as of 7.16 the response defined in OpenAPI spec as:
```
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items":
},
"examples": {
"example-1": {
"summary": "GET `/incident/count?processInstanceId\u003daProcInstId`",
"value": [
]
}
}
}
},
"description": "Request successful."
}
```
It should not be an array.