From 8bc645b006080b860e40c0ff55b485125dc6157d Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Thu, 2 Apr 2026 14:27:45 +0200 Subject: test(api): schema --- lib/warden-core/src/config/cli/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/warden-core/src/config/cli/mod.rs') diff --git a/lib/warden-core/src/config/cli/mod.rs b/lib/warden-core/src/config/cli/mod.rs index e0c5450..f4ffe05 100644 --- a/lib/warden-core/src/config/cli/mod.rs +++ b/lib/warden-core/src/config/cli/mod.rs @@ -57,6 +57,15 @@ pub struct Server { default_value = "5" )] pub timeout_secs: Option, + /// Pagination limit + #[arg( + long, + value_name = "PAGINATION_LIMIT", + env = "PAGINATION_LIMIT", + default_value = "50" + )] + #[arg(value_parser = clap::value_parser!(i64).range(1..))] + pub pagination_limit: Option, } impl Default for Server { @@ -70,6 +79,7 @@ impl Default for Server { )), log_dir: Some(std::env::temp_dir()), timeout_secs: Some(5), + pagination_limit: Some(50), } } } -- cgit v1.2.3