Skip to content

Commit 4354717

Browse files
committed
Add missing WebhookEventType
1 parent 3436f2c commit 4354717

5 files changed

Lines changed: 23 additions & 8 deletions

File tree

apify-api/openapi/components/schemas/webhooks/Webhook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ properties:
3333
eventTypes:
3434
type: array
3535
items:
36-
type: string
37-
example:
36+
$ref: ./WebhookEventType.yaml
37+
examples:
3838
- ACTOR.RUN.SUCCEEDED
3939
condition:
4040
$ref: ./WebhookCondition.yaml

apify-api/openapi/components/schemas/webhooks/WebhookCreate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ properties:
1212
eventTypes:
1313
type: array
1414
items:
15-
type: string
16-
example:
15+
$ref: ./WebhookEventType.yaml
16+
examples:
1717
- ACTOR.RUN.SUCCEEDED
1818
condition:
1919
$ref: ./WebhookCondition.yaml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
title: WebhookEventType
2+
type: string
3+
enum:
4+
- ACTOR.BUILD.ABORTED
5+
- ACTOR.BUILD.CREATED
6+
- ACTOR.BUILD.FAILED
7+
- ACTOR.BUILD.SUCCEEDED
8+
- ACTOR.BUILD.TIMED_OUT
9+
- ACTOR.RUN.ABORTED
10+
- ACTOR.RUN.CREATED
11+
- ACTOR.RUN.FAILED
12+
- ACTOR.RUN.RESURRECTED
13+
- ACTOR.RUN.SUCCEEDED
14+
- ACTOR.RUN.TIMED_OUT
15+
description: Type of event that triggers the webhook.

apify-api/openapi/components/schemas/webhooks/WebhookShort.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ properties:
3434
eventTypes:
3535
type: array
3636
items:
37-
type: string
38-
example:
37+
$ref: ./WebhookEventType.yaml
38+
examples:
3939
- ACTOR.RUN.SUCCEEDED
4040
condition:
4141
$ref: ./WebhookCondition.yaml

apify-api/openapi/components/schemas/webhooks/WebhookUpdate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ properties:
88
eventTypes:
99
type: array
1010
items:
11-
type: string
11+
$ref: ./WebhookEventType.yaml
1212
description: ''
1313
nullable: true
14-
example:
14+
examples:
1515
- ACTOR.RUN.SUCCEEDED
1616
condition:
1717
nullable: true

0 commit comments

Comments
 (0)