From d3c06d5dea703d4bf53d8018e60cb109f65d8139 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 4 Jun 2024 14:46:44 +0200 Subject: [PATCH] fix: Fix eventFilter definition in ResponseDefinitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/webhooks/lib/ResponseDefinitions.php | 2 +- apps/webhooks/openapi.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/webhooks/lib/ResponseDefinitions.php b/apps/webhooks/lib/ResponseDefinitions.php index a8c188d2a59..ea31de931ac 100644 --- a/apps/webhooks/lib/ResponseDefinitions.php +++ b/apps/webhooks/lib/ResponseDefinitions.php @@ -16,7 +16,7 @@ namespace OCA\Webhooks; * httpMethod: string, * uri: string, * event?: string, - * eventFilter?: array, + * eventFilter?: array, * headers?: array, * authMethod: string, * authData?: array, diff --git a/apps/webhooks/openapi.json b/apps/webhooks/openapi.json index 13bc1a7fb5f..bdcc8007270 100644 --- a/apps/webhooks/openapi.json +++ b/apps/webhooks/openapi.json @@ -46,8 +46,8 @@ "type": "string" }, "eventFilter": { - "type": "array", - "items": { + "type": "object", + "additionalProperties": { "type": "object" } }, -- 2.39.5