mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
fix(payment): fix max limit on payment intents list (#2014)
Co-authored-by: Apoorv Dixit <apoorv.dixit@juspay.in>
This commit is contained in:
@ -1923,9 +1923,9 @@ pub struct PaymentListConstraints {
|
||||
pub ending_before: Option<String>,
|
||||
|
||||
/// limit on the number of objects to return
|
||||
#[schema(default = 10)]
|
||||
#[schema(default = 10, maximum = 100)]
|
||||
#[serde(default = "default_limit")]
|
||||
pub limit: i64,
|
||||
pub limit: u32,
|
||||
|
||||
/// The time at which payment is created
|
||||
#[schema(example = "2022-09-10T10:11:12Z")]
|
||||
@ -2037,7 +2037,7 @@ pub struct VerifyResponse {
|
||||
pub error_message: Option<String>,
|
||||
}
|
||||
|
||||
fn default_limit() -> i64 {
|
||||
fn default_limit() -> u32 {
|
||||
10
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user