From 88decb6fb2d56cf9583bc08ac714ab72cb54352a Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 28 May 2026 12:34:32 +0200 Subject: [PATCH] fix(openapi): relax required fields on actor pricing info schemas Drop `apifyMarginPercentage`, `createdAt`, `startedAt` from `CommonActorPricingInfo` and `eventDescription` from `ActorChargeEvent`. The platform-set `APIFY_ACTOR_PRICING_INFO` env var omits these fields, so consumers deserializing it via the generated pydantic models hit avoidable validation errors and resort to injecting placeholder defaults. Marking them optional matches reality and is consistent with the sibling `CurrentPricingInfo` schema, which already has these fields optional. --- .../schemas/actor-pricing-info/ActorChargeEvent.yaml | 1 - .../schemas/actor-pricing-info/CommonActorPricingInfo.yaml | 4 ---- 2 files changed, 5 deletions(-) diff --git a/apify-api/openapi/components/schemas/actor-pricing-info/ActorChargeEvent.yaml b/apify-api/openapi/components/schemas/actor-pricing-info/ActorChargeEvent.yaml index 4de6d998cb..92a9f4fb62 100644 --- a/apify-api/openapi/components/schemas/actor-pricing-info/ActorChargeEvent.yaml +++ b/apify-api/openapi/components/schemas/actor-pricing-info/ActorChargeEvent.yaml @@ -5,7 +5,6 @@ description: | type: object required: - eventTitle - - eventDescription properties: eventTitle: type: string diff --git a/apify-api/openapi/components/schemas/actor-pricing-info/CommonActorPricingInfo.yaml b/apify-api/openapi/components/schemas/actor-pricing-info/CommonActorPricingInfo.yaml index 895d33624c..7e808b1d19 100644 --- a/apify-api/openapi/components/schemas/actor-pricing-info/CommonActorPricingInfo.yaml +++ b/apify-api/openapi/components/schemas/actor-pricing-info/CommonActorPricingInfo.yaml @@ -1,9 +1,5 @@ title: CommonActorPricingInfo type: object -required: - - apifyMarginPercentage - - createdAt - - startedAt properties: apifyMarginPercentage: type: number