Skip to content

chore: sync PHP client with Apify OpenAPI spec v2-2026-09-10T091137Z - #13

Open
Pijukatel wants to merge 1 commit into
masterfrom
claude/vibrant-ramanujan-mwdmsv
Open

chore: sync PHP client with Apify OpenAPI spec v2-2026-09-10T091137Z#13
Pijukatel wants to merge 1 commit into
masterfrom
claude/vibrant-ramanujan-mwdmsv

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Syncs Version::API_SPEC_VERSION to v2-2026-09-10T091137Z (apify-docs#2965), which documents X-Apify-Pagination-* response headers on all offset-paginated list endpoints, including the previously-undocumented X-Apify-Pagination-Desc. All collection clients already implemented this correctly ahead of spec, except DatasetClient::listItems(), which derived PaginationList::isDesc() from the request option instead of the response header — fixed to read the header (new headerBool() helper), matching the reference JS client's _createPaginationList, with unit and integration coverage for the header-precedence and fallback cases.

@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Sep 11, 2026
@apify-service-account apify-service-account added the t-tooling Issues with this label are in the ownership of the tooling team. label Sep 11, 2026
@Pijukatel Pijukatel added adhoc Ad-hoc unplanned task added during the sprint. and removed tested Temporary label used only programatically for some analytics. labels Sep 11, 2026 — with Claude
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Sep 11, 2026
Pijukatel pushed a commit that referenced this pull request Sep 11, 2026
…dence

Addresses an independent review's low-severity finding on PR #13: the
existing unit tests only proved a "true" header beating a false option and
the absent-header fallback, so a header value of "false" could pass those
tests even if headerBool() ignored the header entirely. Add the symmetric
case (header "false" overriding a requested desc: true) to actually prove
header parsing, not just fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RSRQiKuykuXATHK8g1FDqU
Syncs Version::API_SPEC_VERSION to v2-2026-09-10T091137Z (apify-docs #2965),
which documents the X-Apify-Pagination-* response headers on all
offset-paginated list endpoints, including the previously-undocumented
X-Apify-Pagination-Desc. All collection clients already implemented this
ahead of spec except DatasetClient::listItems(), which derived
PaginationList::isDesc() from the request option instead of the response
header; fixed to read the header (new headerBool() helper), matching the
reference JS client's _createPaginationList, with unit and integration
coverage for the header-precedence and fallback cases.
@Pijukatel
Pijukatel force-pushed the claude/vibrant-ramanujan-mwdmsv branch from df83518 to 82aaa6e Compare September 11, 2026 23:54
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. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants