summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2023-09-20 21:22:33 +0200
committerGitHub <noreply@github.com>2023-09-20 21:22:33 +0200
commit716c5e0966ac1538d1f2abd5ec57e6b53984711d (patch)
tree23e1af6a5c837b2ee5839fa5f5e4d5ca0606edac /apps
parent9a70c1e78ab55378421e24a53d34225f30529e18 (diff)
parent6c840984f89cdc4a44d37e073007675e029d8c40 (diff)
downloadnextcloud-server-716c5e0966ac1538d1f2abd5ec57e6b53984711d.tar.gz
nextcloud-server-716c5e0966ac1538d1f2abd5ec57e6b53984711d.zip
Merge pull request #40511 from nextcloud/fix/dashboard-widgets-api
Fix dashboard widgets api
Diffstat (limited to 'apps')
-rw-r--r--apps/dashboard/lib/Controller/DashboardApiController.php2
-rw-r--r--apps/dashboard/openapi.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php
index 8855bf71700..e50ab974dfc 100644
--- a/apps/dashboard/lib/Controller/DashboardApiController.php
+++ b/apps/dashboard/lib/Controller/DashboardApiController.php
@@ -150,7 +150,7 @@ class DashboardApiController extends OCSController {
* @NoAdminRequired
* @NoCSRFRequired
*
- * @return DataResponse<Http::STATUS_OK, DashboardWidget[], array{}>
+ * @return DataResponse<Http::STATUS_OK, array<string, DashboardWidget>, array{}>
*/
public function getWidgets(): DataResponse {
$widgets = $this->dashboardManager->getWidgets();
diff --git a/apps/dashboard/openapi.json b/apps/dashboard/openapi.json
index 739ba2c4afc..b771b952b33 100644
--- a/apps/dashboard/openapi.json
+++ b/apps/dashboard/openapi.json
@@ -220,8 +220,8 @@
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
- "type": "array",
- "items": {
+ "type": "object",
+ "additionalProperties": {
"$ref": "#/components/schemas/Widget"
}
}