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