Skip to content

Commit

Permalink
refactor(router): fixed openapi issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Nov 16, 2023
1 parent 7a09b37 commit bef803b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,7 @@ pub struct RetrievePaymentLinkResponse {
pub link_expiry: Option<PrimitiveDateTime>,
pub description: Option<String>,
pub status: String,
#[schema(value_type = Currency)]
pub currency: Option<storage_enums::Currency>,
}

Expand Down
10 changes: 3 additions & 7 deletions openapi/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10849,7 +10849,8 @@
"link_to_pay",
"amount",
"created_at",
"status"
"status",
"currency"
],
"properties": {
"payment_link_id": {
Expand Down Expand Up @@ -10882,12 +10883,7 @@
"type": "string"
},
"currency": {
"allOf": [
{
"$ref": "#/components/schemas/storage_enums.Currency"
}
],
"nullable": true
"$ref": "#/components/schemas/Currency"
}
}
},
Expand Down

0 comments on commit bef803b

Please sign in to comment.