Skip to content

Commit 014c579

Browse files
committed
Simplify serde annotations on ReceiverInputOpts
1 parent 1238e2a commit 014c579

File tree

1 file changed

+1
-2
lines changed
  • bridge/svix-bridge-types/src

1 file changed

+1
-2
lines changed

bridge/svix-bridge-types/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,13 @@ pub enum WebhookVerifier {
161161
}
162162

163163
#[derive(Debug, Clone, Deserialize)]
164-
#[serde(tag = "type", rename_all = "lowercase")]
164+
#[serde(tag = "type", rename_all = "kebab-case")]
165165
pub enum ReceiverInputOpts {
166166
Webhook {
167167
path_id: String,
168168
#[serde(default)]
169169
verification: WebhookVerifier,
170170
},
171-
#[serde(rename = "svix-webhook")]
172171
SvixWebhook {
173172
path_id: String,
174173
endpoint_secret: String,

0 commit comments

Comments
 (0)