Skip to content

Commit 47c7ae2

Browse files
committed
Remove EndpointPatch#secret
1 parent 7fcd42b commit 47c7ae2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

server/openapi.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,6 @@
732732
"nullable": true,
733733
"type": "integer"
734734
},
735-
"secret": {
736-
"description": "The endpoint's verification secret. If `null` is passed, a secret is automatically generated. Format: `base64` encoded random bytes optionally prefixed with `whsec_`. Recommended size: 24.",
737-
"example": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD",
738-
"nullable": true,
739-
"pattern": "^(whsec_)?[a-zA-Z0-9+/=]{32,100}$",
740-
"type": "string"
741-
},
742735
"uid": {
743736
"example": "unique-ep-identifier",
744737
"maxLength": 256,

server/svix-server/src/v1/endpoints/endpoint/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,6 @@ pub struct EndpointPatch {
384384
#[serde(default, skip_serializing_if = "UnrequiredNullableField::is_absent")]
385385
pub channels: UnrequiredNullableField<EventChannelSet>,
386386

387-
#[validate]
388-
#[serde(default)]
389-
#[serde(rename = "secret")]
390-
#[serde(skip_serializing_if = "UnrequiredNullableField::is_absent")]
391-
pub key: UnrequiredNullableField<EndpointSecret>,
392-
393387
#[serde(default)]
394388
#[serde(skip_serializing_if = "UnrequiredField::is_absent")]
395389
pub metadata: UnrequiredField<Metadata>,
@@ -409,7 +403,6 @@ impl ModelIn for EndpointPatch {
409403
disabled,
410404
event_types_ids,
411405
channels,
412-
key: _,
413406
metadata: _,
414407
} = self;
415408

0 commit comments

Comments
 (0)