From f2dabc36898ae01cf352d57bcfd313640702ea10 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Fri, 22 May 2026 15:01:08 +0200 Subject: [PATCH] fix(openapi): allow 128MB memory limits and add CI to RunOrigin enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Real Apify API responses include actors with minMemoryMbytes/maxMemoryMbytes of 128 (the actual platform minimum) and builds with origin "CI", but the spec rejected both — causing Pydantic ValidationError in apify-client-python 3.0.0 for ~20 store actors and any actor with CI-triggered builds. --- .../openapi/components/schemas/actor-runs/RunOrigin.yaml | 1 + .../openapi/components/schemas/actors/ActorDefinition.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apify-api/openapi/components/schemas/actor-runs/RunOrigin.yaml b/apify-api/openapi/components/schemas/actor-runs/RunOrigin.yaml index d74519fa35..f777cd56a3 100644 --- a/apify-api/openapi/components/schemas/actor-runs/RunOrigin.yaml +++ b/apify-api/openapi/components/schemas/actor-runs/RunOrigin.yaml @@ -9,4 +9,5 @@ enum: - WEBHOOK - ACTOR - CLI + - CI - STANDBY diff --git a/apify-api/openapi/components/schemas/actors/ActorDefinition.yaml b/apify-api/openapi/components/schemas/actors/ActorDefinition.yaml index 6ce7137305..f4cd18036d 100644 --- a/apify-api/openapi/components/schemas/actors/ActorDefinition.yaml +++ b/apify-api/openapi/components/schemas/actors/ActorDefinition.yaml @@ -51,11 +51,11 @@ properties: description: Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a [dynamic memory expression](/platform/actors/development/actor-definition/dynamic-actor-memory). minMemoryMbytes: type: integer - minimum: 256 + minimum: 128 description: Specifies the minimum amount of memory in megabytes required by the Actor. maxMemoryMbytes: type: integer - minimum: 256 + minimum: 128 description: Specifies the maximum amount of memory in megabytes required by the Actor. usesStandbyMode: type: boolean