Skip to content

fix: Require unique_key and url in RequestBase, add RequestWithoutId - #1030

Merged
vdusek merged 2 commits into
masterfrom
ci/regenerate-models
Aug 24, 2026
Merged

vdusek merged 2 commits into
masterfrom
ci/regenerate-models

Conversation

@apify-service-account

Copy link
Copy Markdown
Contributor
  • Regenerates the Pydantic models, TypedDicts, and literal aliases from the published OpenAPI specification, and records its version in pyproject.toml.
  • Specification version: v2-2026-08-14T072928Z -> v2-2026-08-24T085852Z.

Important

Retitle this pull request to fix: or feat: when the diff is user-facing, so that it lands in the changelog and triggers a release - chore: does neither.

Generated by the Regenerate models workflow.

@apify-service-account apify-service-account added the t-tooling Issues with this label are in the ownership of the tooling team. label Aug 24, 2026
@codecov

codecov Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.96%. Comparing base (eada909) to head (1f7a057).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/apify_client/_typeddicts.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1030   +/-   ##
=======================================
  Coverage   94.95%   94.96%           
=======================================
  Files          58       58           
  Lines        5436     5439    +3     
=======================================
+ Hits         5162     5165    +3     
  Misses        274      274           
Flag Coverage Δ
integration 91.79% <55.55%> (-0.02%) ⬇️
unit 85.82% <55.55%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Splits this PR down to the request-queue changes only. The pricing_infos
and apify_margin_percentage changes are unrelated and will come back as
their own PR on the next model-sync run.
@vdusek vdusek changed the title chore: Regenerate models from the published OpenAPI spec fix: Require unique_key and url in RequestBase, add RequestWithoutId Aug 24, 2026
@vdusek
vdusek merged commit 28efd13 into master Aug 24, 2026
30 checks passed
@vdusek
vdusek deleted the ci/regenerate-models branch August 24, 2026 10:48
vdusek added a commit that referenced this pull request Aug 25, 2026
…ID (#1032)

Master CI is red on every type-check and unit-test job:
https://github.com/apify/apify-client-python/actions/runs/32821686073

Two PRs that each passed CI on their own conflict semantically once
merged together:

- #1030 made `unique_key` a required field on `RequestBase`.
- #1025 added two tests that build `Request(url='https://example.com')`
to assert `update_request` rejects a request with no ID.

In that order, the `Request` constructor now raises a pydantic
`ValidationError` for the missing `uniqueKey` before `update_request` is
ever reached — so `ty` reported 2 `missing-argument` diagnostics and
both tests failed on the wrong exception.

Supplying the now-required `unique_key` makes the tests exercise what
they were written for (the missing ID), not model validation.

*✍️ Drafted by Claude Code*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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