feat: sync Go client with Apify OpenAPI spec v2-2026-08-05T133145Z - #20
Merged
Conversation
Add TaskClient.Publish/Unpublish and Task.IsPublic/PublicConfig fields to mirror apify-client-js#989. Remove the duplicated AI-disclaimer paragraph from docs/README.md and client.go per the updated client requirements (only the top-level README states it). No API endpoints were added or removed by this spec bump; the new error responses and enum values are absorbed by the client's generic error handling.
- Nil-check IsPublic before dereferencing in the docs/tasks.md publish/unpublish snippet instead of assuming it is always set. - Reword IsPublic/PublicConfig doc comments and docs/tasks.md to state they are not part of the documented Task schema, rather than implying a spec-backed derivation. - Trim the CHANGELOG 0.8.0 entry to the changes made, dropping the out-of-scope/no-change justification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec sync
Bumps
APISpecVersiontov2-2026-08-05T133145Z. No endpoints, error responses, or enum values in the spec delta required code changes beyond the version constant - the existing generic error handling already covers the newly documented error responses.Reference client parity
Adds
TaskClient.Publish/TaskClient.UnpublishplusTask.IsPublic/Task.PublicConfigand the newTaskPublicConfigtype, mirroring the reference JavaScript client's task publish/unpublish support (apify-client-js#989) that setsisPublicthrough the existing update endpoint.Documentation cleanup
Removes the duplicated AI-disclaimer paragraph from
docs/README.mdand theclient.gopackage doc; it now appears once, in the top-levelREADME.md, per the updated client requirements (apify-client-orchestration#41).Changes
task.go:TaskClient.Publish/TaskClient.Unpublish.models.go:Task.IsPublic,Task.PublicConfig, newTaskPublicConfigtype.version.go:APISpecVersionbump;ClientVersion0.7.1->0.8.0(minor: additive only).docs/tasks.md: documents the new methods.tests/task_test.go: newTestTaskPublishUnpublishintegration test.client.go,docs/README.md: AI-disclaimer de-duplication.CHANGELOG.md: new0.8.0entry.