aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Orbaugh <62374139+sorbaugh@users.noreply.github.com>2025-03-27 14:25:02 +0100
committerGitHub <noreply@github.com>2025-03-27 14:25:02 +0100
commitc359e620f5cca1349d0c79626f123efe6e3ef5c8 (patch)
tree4a5ad94417727fdc0702c25ac57ea078b59686e3
parent96e25558d22c05c93326de4869f8a4bd1fddca71 (diff)
parent7ac3fa7e9c290a119fa77dc845c4d298abf98f3c (diff)
downloadnextcloud-server-c359e620f5cca1349d0c79626f123efe6e3ef5c8.tar.gz
nextcloud-server-c359e620f5cca1349d0c79626f123efe6e3ef5c8.zip
Merge pull request #51449 from hendrikheil/fix/fix-authmode-webhook-typo
fix: resolve typo in authMethod enum cases
-rw-r--r--apps/webhook_listeners/lib/Controller/WebhooksController.php4
-rw-r--r--apps/webhook_listeners/openapi.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/webhook_listeners/lib/Controller/WebhooksController.php b/apps/webhook_listeners/lib/Controller/WebhooksController.php
index ef8e2e1e244..cf541487951 100644
--- a/apps/webhook_listeners/lib/Controller/WebhooksController.php
+++ b/apps/webhook_listeners/lib/Controller/WebhooksController.php
@@ -110,7 +110,7 @@ class WebhooksController extends OCSController {
* @param ?array<string,mixed> $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<string,string> $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<string,mixed> $authData Array of data for authentication
*
* @return DataResponse<Http::STATUS_OK, WebhookListenersWebhookInfo, array{}>
@@ -178,7 +178,7 @@ class WebhooksController extends OCSController {
* @param ?array<string,mixed> $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<string,string> $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<string,mixed> $authData Array of data for authentication
*
* @return DataResponse<Http::STATUS_OK, WebhookListenersWebhookInfo, array{}>
diff --git a/apps/webhook_listeners/openapi.json b/apps/webhook_listeners/openapi.json
index fcd26efdf6d..9e7acc5c6f8 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"
},