From 8fb38ba0f28046202440ed4a8c1a9373ef3ccb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Talbot?= <108630700+fetchfern@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:52:43 -0500 Subject: [PATCH] Remove tag="type" on PaymentRequestMetadata (#4931) This would conflict with the flattened kind: PaymentRequestMetadataKind enum, which itself is internally tagged with "type", leading to two "type" fields being serialized, confusing the deserializer. Deserialization would fail, be silenced in the stripe webhook and lead to the incorrect region being assigned to a server. --- apps/labrinth/src/routes/internal/billing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index f4997d70..5d2c7fbb 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -1520,7 +1520,7 @@ pub enum ChargeRequestType { } #[derive(Deserialize, Serialize)] -#[serde(tag = "type", rename_all = "snake_case")] +#[serde(rename_all = "snake_case")] pub struct PaymentRequestMetadata { #[serde(flatten)] pub kind: PaymentRequestMetadataKind,