Skip to content

feat: sync Java client with Apify OpenAPI spec v2-2026-08-05T133145Z - #13

Merged
Pijukatel merged 2 commits into
masterfrom
claude/admiring-brahmagupta-18e9fn
Aug 11, 2026
Merged

feat: sync Java client with Apify OpenAPI spec v2-2026-08-05T133145Z#13
Pijukatel merged 2 commits into
masterfrom
claude/admiring-brahmagupta-18e9fn

Conversation

@Pijukatel

@Pijukatel Pijukatel commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Spec sync

Bumps Version.API_SPEC_VERSION to v2-2026-08-05T133145Z. The four apify-docs spec PRs since the last sync (#2790, #2646, #2841, #2851) are description/operationId-only, so no code change is spec-mandated beyond the version constant.

Reference client parity

Adds TaskClient.publish() / TaskClient.unpublish() plus Task.getIsPublic() / Task.getPublicConfig() and the new TaskPublicConfig type, mirroring the reference JavaScript client's task publish/unpublish support (apify-client-js#989). Also hardens brotli request-body compression to fall back to gzip if the encode call itself fails, not only when the native codec fails to load, matching the intent of apify-client-js#990.

Documentation cleanup

Removes the duplicated AI-disclaimer paragraph so it appears once, in the top-level README.md, per the updated client requirements (apify-client-orchestration#41).

Changes

  • src/main/java/com/apify/client/task/TaskClient.java: publish() / unpublish().
  • src/main/java/com/apify/client/task/Task.java: getIsPublic() / getPublicConfig().
  • src/main/java/com/apify/client/task/TaskPublicConfig.java: new type.
  • src/main/java/com/apify/client/internal/HttpClientCore.java: brotli-to-gzip compression fallback hardening.
  • Version.java / pom.xml: API_SPEC_VERSION bump; CLIENT_VERSION 0.5.0 -> 0.6.0 (minor: additive only).
  • spotbugs-exclude.xml: one narrowly-scoped entry for Task.getPublicConfig.
  • docs/tasks.md: documents the new methods.
  • CompressionTest.java, integration/TaskIntegrationTest.java: new compression-fallback and taskPublishUnpublish tests.
  • CHANGELOG.md: new 0.6.0 entry.

Adds TaskClient.publish()/unpublish() and Task.isPublic/publicConfig
(TaskPublicConfig), mirroring apify-client-js#989. The four apify-docs
spec PRs since the last sync are description/operationId-only, so no
other code change is spec-mandated. Also hardens brotli request-body
compression to fall back to gzip if the encode call itself fails, not
only when the native codec fails to load (apify-client-js#990's intent).
@github-actions github-actions Bot added this to the 147th sprint - Tooling team milestone Aug 11, 2026
@github-actions github-actions Bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Aug 11, 2026
…allback

Fixes unpublish()'s Javadoc (it only needs write permission to the task,
not its Actor), widens compress()'s fallback catch to Throwable so it
actually covers the native-codec-failure case its comment describes
(matching detectBrotli()'s existing Throwable catch), cleans up two
garbled test comments, and documents the untested fallback branch as an
accepted gap with rationale.
@Pijukatel
Pijukatel merged commit ab22fde into master Aug 11, 2026
2 checks passed
@Pijukatel
Pijukatel deleted the claude/admiring-brahmagupta-18e9fn branch August 11, 2026 08:51
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. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants