From 16342f4a9d3947def5d59d2eb32d2f7c63291d0d Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sun, 23 Jun 2024 13:36:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=95=E3=82=A9=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=AE=E4=B8=80=E8=A6=A7=E3=82=92=E5=8F=96=E5=BE=97=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=A8=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AEoffset=E3=80=81limit=E3=81=AE=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=82=92=E4=BB=BB=E6=84=8F=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- endpoints/forms.tsp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/endpoints/forms.tsp b/endpoints/forms.tsp index 57db0a7..d6f8c55 100644 --- a/endpoints/forms.tsp +++ b/endpoints/forms.tsp @@ -52,13 +52,14 @@ namespace Forms { @summary("フォームの一覧取得") op list( @doc("取得件数の下限値 例えば、offsetを1とすると2件目からのデータが取得できます。") + @minValue(0) @query - offset: uint32, + offset?: uint32, @doc("取得件数の上限値 例えば、limitを10とすると10番目までのデータが取得できます。") @minValue(1) @query - limit: uint32, + limit?: uint32, ): { @statusCode statusCode: 200; @body body: MinimalForm[];