From 0a5e6004ebe782e820f7b7ee80e4afb74a0f975d Mon Sep 17 00:00:00 2001 From: Luca Spinazzola Date: Thu, 20 Jun 2024 20:03:57 -0400 Subject: [PATCH 1/2] skip serializing webhook_id for EditWebhookRequest --- src/types/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/types.rs b/src/types/types.rs index 39c8df3..d0ca551 100644 --- a/src/types/types.rs +++ b/src/types/types.rs @@ -928,7 +928,7 @@ pub struct CreateCollectionWebhookRequest { #[derive(Serialize, Deserialize, Clone, Debug)] pub struct EditWebhookRequest { - #[serde(rename = "webhookID")] + #[serde(skip_serializing)] pub webhook_id: String, #[serde(rename = "webhookURL")] pub webhook_url: String, From ae7c9976609ff86eed7f3e5534e3f80bd9994c6f Mon Sep 17 00:00:00 2001 From: Luca Spinazzola Date: Thu, 20 Jun 2024 20:07:56 -0400 Subject: [PATCH 2/2] make serialized EditWebhookRequest camelCase --- src/types/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/types.rs b/src/types/types.rs index d0ca551..a6aa909 100644 --- a/src/types/types.rs +++ b/src/types/types.rs @@ -927,6 +927,7 @@ pub struct CreateCollectionWebhookRequest { } #[derive(Serialize, Deserialize, Clone, Debug)] +#[serde(rename_all = "camelCase")] pub struct EditWebhookRequest { #[serde(skip_serializing)] pub webhook_id: String,