From 078784352daf9f1bb60e0cf2593d9503ef34548f Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Wed, 25 Feb 2026 16:00:55 +0100 Subject: [PATCH] feat: Add ActorJob and ActorJobResponse schemas to OpenAPI spec These minimal schemas are needed for Actor job polling validation in the Python API client. Previously they were maintained as custom internal models in apify-client-python outside the OpenAPI spec. Co-Authored-By: Claude Opus 4.6 --- .../openapi/components/schemas/common/ActorJob.yaml | 9 +++++++++ .../components/schemas/common/ActorJobResponse.yaml | 8 ++++++++ apify-api/openapi/openapi.yaml | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 apify-api/openapi/components/schemas/common/ActorJob.yaml create mode 100644 apify-api/openapi/components/schemas/common/ActorJobResponse.yaml diff --git a/apify-api/openapi/components/schemas/common/ActorJob.yaml b/apify-api/openapi/components/schemas/common/ActorJob.yaml new file mode 100644 index 0000000000..5e50d3074e --- /dev/null +++ b/apify-api/openapi/components/schemas/common/ActorJob.yaml @@ -0,0 +1,9 @@ +title: ActorJob +description: Minimal model for an Actor job (run or build) with status. Used for validation during polling operations. +required: + - status +type: object +properties: + status: + description: Current status of the Actor job. + $ref: ./ActorJobStatus.yaml diff --git a/apify-api/openapi/components/schemas/common/ActorJobResponse.yaml b/apify-api/openapi/components/schemas/common/ActorJobResponse.yaml new file mode 100644 index 0000000000..b8a3604fbd --- /dev/null +++ b/apify-api/openapi/components/schemas/common/ActorJobResponse.yaml @@ -0,0 +1,8 @@ +title: ActorJobResponse +description: Response wrapper for an Actor job (run or build). Used for minimal validation during polling operations. +required: + - data +type: object +properties: + data: + $ref: ./ActorJob.yaml diff --git a/apify-api/openapi/openapi.yaml b/apify-api/openapi/openapi.yaml index c7d938985d..f76f5e6c7c 100644 --- a/apify-api/openapi/openapi.yaml +++ b/apify-api/openapi/openapi.yaml @@ -624,6 +624,11 @@ paths: /v2/users/me/limits: $ref: paths/users/users@me@limits.yaml components: + schemas: + ActorJob: + $ref: components/schemas/common/ActorJob.yaml + ActorJobResponse: + $ref: components/schemas/common/ActorJobResponse.yaml securitySchemes: httpBearer: $ref: components/securitySchemes/httpBearer.yaml