diff options
author | provokateurin <kate@provokateurin.de> | 2024-12-11 10:19:58 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-12-18 10:52:41 +0100 |
commit | 35c4bfd64e0f20d0da5b2f7ce3a8b174a1b61ab4 (patch) | |
tree | f30b8b7d9bbad7602472a8045e3924db674f96e9 | |
parent | 5198ef2150ce9919b106555a126193358ef0c225 (diff) | |
download | nextcloud-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.php | 2 | ||||
-rw-r--r-- | apps/user_status/openapi.json | 3 |
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 } }, { |