]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Fix eventFilter definition in ResponseDefinitions
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 4 Jun 2024 12:46:44 +0000 (14:46 +0200)
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>
Tue, 11 Jun 2024 12:10:29 +0000 (14:10 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/webhooks/lib/ResponseDefinitions.php
apps/webhooks/openapi.json

index a8c188d2a59176c5acb564a22f6b8bf047307a57..ea31de931acbb3bbdc9e480162b4a364b4de7981 100644 (file)
@@ -16,7 +16,7 @@ namespace OCA\Webhooks;
  *     httpMethod: string,
  *     uri: string,
  *     event?: string,
- *     eventFilter?: array<mixed>,
+ *     eventFilter?: array<string,mixed>,
  *     headers?: array<string,string>,
  *     authMethod: string,
  *     authData?: array<string,mixed>,
index 13bc1a7fb5fea2ab37016574502ec2896c802e5c..bdcc8007270b483ef4949263fa2e9b6bbff8a9b6 100644 (file)
@@ -46,8 +46,8 @@
                         "type": "string"
                     },
                     "eventFilter": {
-                        "type": "array",
-                        "items": {
+                        "type": "object",
+                        "additionalProperties": {
                             "type": "object"
                         }
                     },