From 767ee67c324cdf2116d75c084d694ca84e75d3b6 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 16 Jul 2026 15:48:26 +0200 Subject: [PATCH] fix(openapi): Preserve RequestWithoutId and its required fields when bundling --- .../components/schemas/request-queues/Request.yaml | 2 -- .../components/schemas/request-queues/RequestBase.yaml | 3 +++ .../schemas/request-queues/RequestWithoutId.yaml | 9 +++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apify-api/openapi/components/schemas/request-queues/Request.yaml b/apify-api/openapi/components/schemas/request-queues/Request.yaml index a59570aa82..405dec1b8e 100644 --- a/apify-api/openapi/components/schemas/request-queues/Request.yaml +++ b/apify-api/openapi/components/schemas/request-queues/Request.yaml @@ -4,8 +4,6 @@ allOf: - $ref: ./RequestBase.yaml required: - id - - uniqueKey - - url - properties: id: $ref: ./SharedProperties.yaml#/RequestId diff --git a/apify-api/openapi/components/schemas/request-queues/RequestBase.yaml b/apify-api/openapi/components/schemas/request-queues/RequestBase.yaml index 0e51f6d66e..8c514a455a 100644 --- a/apify-api/openapi/components/schemas/request-queues/RequestBase.yaml +++ b/apify-api/openapi/components/schemas/request-queues/RequestBase.yaml @@ -1,5 +1,8 @@ title: RequestBase type: object +required: + - uniqueKey + - url properties: uniqueKey: $ref: ./SharedProperties.yaml#/UniqueKey diff --git a/apify-api/openapi/components/schemas/request-queues/RequestWithoutId.yaml b/apify-api/openapi/components/schemas/request-queues/RequestWithoutId.yaml index 6d500ae242..692327de63 100644 --- a/apify-api/openapi/components/schemas/request-queues/RequestWithoutId.yaml +++ b/apify-api/openapi/components/schemas/request-queues/RequestWithoutId.yaml @@ -1,6 +1,7 @@ title: RequestWithoutId description: A request stored in the request queue, including its metadata and processing state, without the assigned ID. -$ref: ./RequestBase.yaml -required: - - uniqueKey - - url +# Wrapped in a single-member `allOf` so that bundling keeps this component. A bare `$ref` with sibling keys is a +# pass-through schema, which the bundler inlines into its target - the component then never reaches the published +# specification, and clients generated from it have no schema for the request-queue write bodies. +allOf: + - $ref: ./RequestBase.yaml