From 0d2e0dc6362550cd925949aefd9379c2a6d48d43 Mon Sep 17 00:00:00 2001 From: --systemdf Date: Mon, 4 Nov 2024 17:39:16 +0000 Subject: [PATCH] document with maximum --- auction-server/src/opportunity/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auction-server/src/opportunity/api.rs b/auction-server/src/opportunity/api.rs index 280547fe..7c7540b6 100644 --- a/auction-server/src/opportunity/api.rs +++ b/auction-server/src/opportunity/api.rs @@ -168,8 +168,8 @@ pub struct GetOpportunitiesQueryParams { #[param(example="2024-05-23T21:26:57.329954Z", value_type = Option)] #[serde(default, with = "crate::serde::nullable_datetime")] pub from_time: Option, - /// The maximum number of opportunities to return. Capped at 100. - #[param(example = "20", value_type = usize)] + /// The maximum number of opportunities to return. Capped at 100; if more than 100 requested, at most 100 will be returned. + #[param(example = "20", value_type = usize, maximum = 100)] #[serde(default = "default_limit")] limit: usize, }