From eb0dd58c5fee3647392f91c16312dca6f54c0383 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 27 Apr 2026 09:37:26 +0000 Subject: [PATCH] fix(openapi): rename WebhookDispatchList to ListOfWebhookDispatchesResponse Aligns the webhook-dispatches list-envelope schema with the convention used by ListOfActorsResponse, ListOfBuildsResponse, etc., and adds the missing required: [data] so generated Pydantic models have a non-optional data field. --- ...DispatchList.yaml => ListOfWebhookDispatchesResponse.yaml} | 4 +++- .../openapi/paths/webhook-dispatches/webhook-dispatches.yaml | 2 +- .../paths/webhooks/webhooks@{webhookId}@dispatches.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) rename apify-api/openapi/components/schemas/webhook-dispatches/{WebhookDispatchList.yaml => ListOfWebhookDispatchesResponse.yaml} (56%) diff --git a/apify-api/openapi/components/schemas/webhook-dispatches/WebhookDispatchList.yaml b/apify-api/openapi/components/schemas/webhook-dispatches/ListOfWebhookDispatchesResponse.yaml similarity index 56% rename from apify-api/openapi/components/schemas/webhook-dispatches/WebhookDispatchList.yaml rename to apify-api/openapi/components/schemas/webhook-dispatches/ListOfWebhookDispatchesResponse.yaml index 6e368f1f45..5cd87373d0 100644 --- a/apify-api/openapi/components/schemas/webhook-dispatches/WebhookDispatchList.yaml +++ b/apify-api/openapi/components/schemas/webhook-dispatches/ListOfWebhookDispatchesResponse.yaml @@ -1,4 +1,6 @@ -title: WebhookDispatchList +title: ListOfWebhookDispatchesResponse +required: + - data type: object properties: data: diff --git a/apify-api/openapi/paths/webhook-dispatches/webhook-dispatches.yaml b/apify-api/openapi/paths/webhook-dispatches/webhook-dispatches.yaml index 4254833438..f87318098f 100644 --- a/apify-api/openapi/paths/webhook-dispatches/webhook-dispatches.yaml +++ b/apify-api/openapi/paths/webhook-dispatches/webhook-dispatches.yaml @@ -22,7 +22,7 @@ get: content: application/json: schema: - $ref: ../../components/schemas/webhook-dispatches/WebhookDispatchList.yaml + $ref: ../../components/schemas/webhook-dispatches/ListOfWebhookDispatchesResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml "401": diff --git a/apify-api/openapi/paths/webhooks/webhooks@{webhookId}@dispatches.yaml b/apify-api/openapi/paths/webhooks/webhooks@{webhookId}@dispatches.yaml index 260d0ed385..c48f536572 100644 --- a/apify-api/openapi/paths/webhooks/webhooks@{webhookId}@dispatches.yaml +++ b/apify-api/openapi/paths/webhooks/webhooks@{webhookId}@dispatches.yaml @@ -13,7 +13,7 @@ get: content: application/json: schema: - $ref: ../../components/schemas/webhook-dispatches/WebhookDispatchList.yaml + $ref: ../../components/schemas/webhook-dispatches/ListOfWebhookDispatchesResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml "401":