Skip to content

Commit

Permalink
Add webhook_event_resource_type
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Sep 24, 2024
1 parent 4d76c77 commit e6d6ef9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 9 additions & 0 deletions schemas/webhooks/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 2 additions & 6 deletions schemas/webhooks/webhook_event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e6d6ef9

Please sign in to comment.