From 35c4bfd64e0f20d0da5b2f7ce3a8b174a1b61ab4 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Wed, 11 Dec 2024 10:19:58 +0100 Subject: fix(user_status): Use constraint for findAll() offset Signed-off-by: provokateurin --- apps/user_status/lib/Controller/StatusesController.php | 2 +- 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, 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 } }, { -- cgit v1.2.3