From e6d6ef991fcee64fcbd059a1ff22552baf91cdb1 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 23 Aug 2024 18:16:13 +0200 Subject: [PATCH] Add webhook_event_resource_type --- schemas/webhooks/definitions.yaml | 9 +++++++++ schemas/webhooks/webhook_event.yaml | 8 ++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/schemas/webhooks/definitions.yaml b/schemas/webhooks/definitions.yaml index 3f204fc9..5c65ce89 100644 --- a/schemas/webhooks/definitions.yaml +++ b/schemas/webhooks/definitions.yaml @@ -53,6 +53,15 @@ webhook_update: url: $ref: "#/webhook_url" +webhook_event_resource_type: + type: string + enum: + - check + - report + - audit_log + - workflow_run + - workflow_task + webhook_event_type: type: string enum: diff --git a/schemas/webhooks/webhook_event.yaml b/schemas/webhooks/webhook_event.yaml index 8fff5d12..a8f9416b 100644 --- a/schemas/webhooks/webhook_event.yaml +++ b/schemas/webhooks/webhook_event.yaml @@ -9,12 +9,8 @@ properties: properties: resource_type: type: string - enum: - - check - - report - - audit_log - - workflow_run - - workflow_task + allOf: + - $ref: definitions.yaml#/webhook_event_resource_type description: Indicates the resource affected by this event. example: workflow_task action: