diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-11-27 10:40:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 10:40:50 +0100 |
commit | 3ccb301853ee849c62a3a08b5c7333a615bfa3db (patch) | |
tree | e61c745d794f95e9295af30c57700465e8e58d0f /apps/dashboard | |
parent | 011390aacbeed174716a76f9944b5db6757d6d0c (diff) | |
parent | 4827fc3eda68042e1c72957c9395f96ae570761d (diff) | |
download | nextcloud-server-3ccb301853ee849c62a3a08b5c7333a615bfa3db.tar.gz nextcloud-server-3ccb301853ee849c62a3a08b5c7333a615bfa3db.zip |
Merge pull request #41578 from nextcloud/enh/noid/dispatcher-test-argument-range
Enable AppFramework dispatcher to enforce integer ranges
Diffstat (limited to 'apps/dashboard')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardApiController.php | 3 | ||||
-rw-r--r-- | apps/dashboard/openapi.json | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index 35db52225da..c95979e667d 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -127,7 +127,8 @@ class DashboardApiController extends OCSController { * Get the items for the widgets * * @param array<string, string> $sinceIds Array indexed by widget Ids, contains date/id from which we want the new items - * @param int $limit Limit number of result items per widget + * @param int $limit Limit number of result items per widget, not more than 30 are allowed + * @psalm-param int<1, 30> $limit * @param string[] $widgets Limit results to specific widgets * @return DataResponse<Http::STATUS_OK, array<string, DashboardWidgetItems>, array{}> * diff --git a/apps/dashboard/openapi.json b/apps/dashboard/openapi.json index 7cbb959cc7e..138f06df83b 100644 --- a/apps/dashboard/openapi.json +++ b/apps/dashboard/openapi.json @@ -360,7 +360,7 @@ { "name": "limit", "in": "query", - "description": "Limit number of result items per widget", + "description": "Limit number of result items per widget, not more than 30 are allowed", "schema": { "type": "integer", "format": "int64", |