summaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-09-19 17:15:23 +0200
committerjld3103 <jld3103yt@gmail.com>2023-09-20 17:41:37 +0200
commit6c840984f89cdc4a44d37e073007675e029d8c40 (patch)
treea78aaa33f92d97a6d0bd8ddc0e19d8b1612e7b3d /apps/dashboard
parent80e3064817602c5d5f9b97646b1dff3c1d163af3 (diff)
downloadnextcloud-server-6c840984f89cdc4a44d37e073007675e029d8c40.tar.gz
nextcloud-server-6c840984f89cdc4a44d37e073007675e029d8c40.zip
dashboard: Fix get widgets OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/dashboard')
-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"
}
}