Skip to content

Commit

Permalink
document with maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
anihamde committed Nov 4, 2024
1 parent ae5ba5b commit 0d2e0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auction-server/src/opportunity/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ pub struct GetOpportunitiesQueryParams {
#[param(example="2024-05-23T21:26:57.329954Z", value_type = Option<String>)]
#[serde(default, with = "crate::serde::nullable_datetime")]
pub from_time: Option<OffsetDateTime>,
/// 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,
}
Expand Down

0 comments on commit 0d2e0dc

Please sign in to comment.