aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-12-11 10:19:58 +0100
committerprovokateurin <kate@provokateurin.de>2024-12-18 10:52:41 +0100
commit35c4bfd64e0f20d0da5b2f7ce3a8b174a1b61ab4 (patch)
treef30b8b7d9bbad7602472a8045e3924db674f96e9
parent5198ef2150ce9919b106555a126193358ef0c225 (diff)
downloadnextcloud-server-35c4bfd64e0f20d0da5b2f7ce3a8b174a1b61ab4.tar.gz
nextcloud-server-35c4bfd64e0f20d0da5b2f7ce3a8b174a1b61ab4.zip
fix(user_status): Use constraint for findAll() offset
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--apps/user_status/lib/Controller/StatusesController.php2
-rw-r--r--apps/user_status/openapi.json3
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_status/lib/Controller/StatusesController.php b/apps/user_status/lib/Controller/StatusesController.php
index e27a0fabbed..44688c39023 100644
--- a/apps/user_status/lib/Controller/StatusesController.php
+++ b/apps/user_status/lib/Controller/StatusesController.php
@@ -46,7 +46,7 @@ class StatusesController extends OCSController {
* Find statuses of users
*
* @param int|null $limit Maximum number of statuses to find
- * @param int|null $offset Offset for finding statuses
+ * @param non-negative-int|null $offset Offset for finding statuses
* @return DataResponse<Http::STATUS_OK, list<UserStatusPublic>, array{}>
*
* 200: Statuses returned
diff --git a/apps/user_status/openapi.json b/apps/user_status/openapi.json
index 8b631156709..580f17e334d 100644
--- a/apps/user_status/openapi.json
+++ b/apps/user_status/openapi.json
@@ -442,7 +442,8 @@
"schema": {
"type": "integer",
"format": "int64",
- "nullable": true
+ "nullable": true,
+ "minimum": 0
}
},
{