From f76c6a7839cc21421cc38fe2cb332f99d13c6fdf Mon Sep 17 00:00:00 2001 From: awasthi21 <107559116+awasthi21@users.noreply.github.com> Date: Tue, 19 Aug 2025 15:54:20 +0530 Subject: [PATCH] fix(core): Address Deserialization issue (#8980) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> --- api-reference/v1/openapi_spec_v1.json | 6 ++---- api-reference/v2/openapi_spec_v2.json | 6 ++---- crates/api_models/src/payments.rs | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json index 73f3ab9be3..27750c56ce 100644 --- a/api-reference/v1/openapi_spec_v1.json +++ b/api-reference/v1/openapi_spec_v1.json @@ -7248,8 +7248,7 @@ "type": "string", "nullable": true } - }, - "additionalProperties": false + } }, "AddressDetails": { "type": "object", @@ -7325,8 +7324,7 @@ "nullable": true, "maxLength": 50 } - }, - "additionalProperties": false + } }, "AdyenConnectorMetadata": { "type": "object", diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json index 02dbdddf4a..e9bd39ac6e 100644 --- a/api-reference/v2/openapi_spec_v2.json +++ b/api-reference/v2/openapi_spec_v2.json @@ -4058,8 +4058,7 @@ "type": "string", "nullable": true } - }, - "additionalProperties": false + } }, "AddressDetails": { "type": "object", @@ -4135,8 +4134,7 @@ "nullable": true, "maxLength": 50 } - }, - "additionalProperties": false + } }, "AdyenConnectorMetadata": { "type": "object", diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 91886de239..723fbae3ff 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -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, @@ -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")]