mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(core): Address Deserialization issue (#8980)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -4473,7 +4473,7 @@ impl Default for PaymentIdType {
|
||||
}
|
||||
|
||||
#[derive(Default, Clone, Debug, Eq, PartialEq, ToSchema, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
// #[serde(deny_unknown_fields)]
|
||||
pub struct Address {
|
||||
/// Provide the address details
|
||||
pub address: Option<AddressDetails>,
|
||||
@ -4504,7 +4504,7 @@ impl Address {
|
||||
// used by customers also, could be moved outside
|
||||
/// Address details
|
||||
#[derive(Clone, Default, Debug, Eq, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
// #[serde(deny_unknown_fields)]
|
||||
pub struct AddressDetails {
|
||||
/// The city, district, suburb, town, or village of the address.
|
||||
#[schema(max_length = 50, example = "New York")]
|
||||
|
||||
Reference in New Issue
Block a user