From 6226545f9bd2905528468ba488d3b927bbc59e7f Mon Sep 17 00:00:00 2001 From: Hendrik Heil Date: Wed, 12 Mar 2025 20:29:55 +0100 Subject: [PATCH 1/2] fix(webhooks): update docblock options for authMethod Signed-off-by: Hendrik Heil --- apps/webhook_listeners/lib/Controller/WebhooksController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webhook_listeners/lib/Controller/WebhooksController.php b/apps/webhook_listeners/lib/Controller/WebhooksController.php index 1d5e37cb373b0..00ba5a6350d5e 100644 --- a/apps/webhook_listeners/lib/Controller/WebhooksController.php +++ b/apps/webhook_listeners/lib/Controller/WebhooksController.php @@ -112,7 +112,7 @@ public function show(int $id): DataResponse { * @param ?array $eventFilter Mongo filter to apply to the serialized data to decide if firing * @param ?string $userIdFilter User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering. * @param ?array $headers Array of headers to send - * @param "none"|"headers"|null $authMethod Authentication method to use + * @param "none"|"header"|null $authMethod Authentication method to use * @param ?array $authData Array of data for authentication * * @return DataResponse @@ -180,7 +180,7 @@ public function create( * @param ?array $eventFilter Mongo filter to apply to the serialized data to decide if firing * @param ?string $userIdFilter User id to filter on. The webhook will only be called by requests from this user. Empty or null means no filtering. * @param ?array $headers Array of headers to send - * @param "none"|"headers"|null $authMethod Authentication method to use + * @param "none"|"header"|null $authMethod Authentication method to use * @param ?array $authData Array of data for authentication * * @return DataResponse From bd4c537f12f693625789a3b8971ac27ac6bc96f9 Mon Sep 17 00:00:00 2001 From: Hendrik Heil Date: Wed, 12 Mar 2025 20:30:05 +0100 Subject: [PATCH 2/2] fix(webhooks): resolve typo in openapi authMethod enum cases Signed-off-by: Hendrik Heil --- apps/webhook_listeners/openapi.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webhook_listeners/openapi.json b/apps/webhook_listeners/openapi.json index fcd26efdf6d69..9e7acc5c6f81f 100644 --- a/apps/webhook_listeners/openapi.json +++ b/apps/webhook_listeners/openapi.json @@ -236,7 +236,7 @@ "nullable": true, "enum": [ "none", - "headers" + "header" ], "description": "Authentication method to use" }, @@ -519,7 +519,7 @@ "nullable": true, "enum": [ "none", - "headers" + "header" ], "description": "Authentication method to use" },