Skip to content

fix: accept task input lists, omitted run and private user fields, and datetime usage dates - #1041

Merged
vdusek merged 1 commit into
masterfrom
ci/regenerate-models
Aug 31, 2026
Merged

fix: accept task input lists, omitted run and private user fields, and datetime usage dates#1041
vdusek merged 1 commit into
masterfrom
ci/regenerate-models

Conversation

@apify-service-account

@apify-service-account apify-service-account commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Regenerates the models from the published OpenAPI specification (v2-2026-08-27T071624Z -> v2-2026-08-30T172245Z), which now describes the API's actual behavior after apify/apify-docs#2932. User-facing changes:

  • Task.input, CreateTaskRequest.input, and UpdateTaskRequest.input also accept a list of objects, which the API stores and returns.
  • DailyServiceUsages.date is a timezone-aware datetime instead of str.
  • Run.general_access is optional - the API omits it for a run that follows the owner's account setting.
  • UserPrivateInfo.plan, effective_platform_features, and is_paying are optional - GET /v2/users/{userId} responses don't carry them.

Previously, responses with any of these shapes failed model validation.

Closes #1040 (a manual test run of the same regeneration against a pre-merge bundle of the spec).

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 31, 2026
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.27%. Comparing base (50950de) to head (bc2de10).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1041   +/-   ##
=======================================
  Coverage   95.27%   95.27%           
=======================================
  Files          59       59           
  Lines        5502     5502           
=======================================
  Hits         5242     5242           
  Misses        260      260           
Flag Coverage Δ
integration 92.02% <100.00%> (-0.13%) ⬇️
unit 87.36% <100.00%> (ø)

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.

@vdusek vdusek changed the title chore: Regenerate models from the published OpenAPI spec fix: accept task input lists, omitted run and private user fields, and datetime usage dates Aug 31, 2026
@vdusek
vdusek merged commit 6a218f8 into master Aug 31, 2026
30 checks passed
@vdusek
vdusek deleted the ci/regenerate-models branch August 31, 2026 13:12
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