Skip to content

fix(openapi): Preserve RequestWithoutId and its required fields when bundling - #2774

Open
vdusek wants to merge 1 commit into
masterfrom
fix/request-without-id-bundling
Open

fix(openapi): Preserve RequestWithoutId and its required fields when bundling#2774
vdusek wants to merge 1 commit into
masterfrom
fix/request-without-id-bundling

Conversation

@vdusek

@vdusek vdusek commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

RequestWithoutId was a bare $ref with sibling keys, so the bundler inlined it: the published openapi.json has no such component, the add-request / batch-add-requests / update-request bodies point straight at RequestBase, and required: [uniqueKey, url] disappears. Generated clients therefore get no schema for those bodies — apify-client-python fell back to a response shape and sent userData and friends snake_cased, which the API rejects with HTTP 400 (apify/apify-client-python#1026).

Wrapping RequestWithoutId in a single-member allOf keeps it a named component through bundling. required: [uniqueKey, url] moves to RequestBase, and Request drops the now-redundant entries — net constraints unchanged.

redocly lint passes, and the bundle keeps the component with all 11 properties and the required constraint.

✍️ Drafted by Claude Code

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Jul 16, 2026
@vdusek vdusek self-assigned this Jul 16, 2026
@github-actions github-actions Bot added this to the 145th sprint - Tooling team milestone Jul 16, 2026
@apify-service-account

apify-service-account commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

✅ Preview for this PR (commit 767ee67) is ready at https://pr-2774.preview.docs.apify.com (see action run).

@apify-service-account

This comment was marked as outdated.

@vdusek vdusek closed this Jul 16, 2026
@vdusek vdusek reopened this Aug 21, 2026
@vdusek
vdusek force-pushed the fix/request-without-id-bundling branch from 3a96e7d to 767ee67 Compare August 21, 2026 17:37
@vdusek vdusek changed the title fix: Preserve RequestWithoutId schema and its required fields in the bundled OpenAPI spec fix(openapi): Preserve RequestWithoutId and its required fields when bundling Aug 21, 2026
@vdusek
vdusek requested a review from Pijukatel August 21, 2026 18:21
@vdusek
vdusek marked this pull request as ready for review August 21, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants