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" } },