Skip to content

WIP: feat(opportunities): add the Domain filter to ListOpportunitiesOptions - #21

Draft
makegov-hal[bot] wants to merge 1 commit into
mainfrom
feat/opportunities-domain
Draft

makegov-hal[bot] wants to merge 1 commit into
mainfrom
feat/opportunities-domain

Conversation

@makegov-hal

@makegov-hal makegov-hal Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

What

ListOpportunitiesOptions gains Domain, sent as domain. Tango's filter/shape contract lists opportunities.domain as of API 5.20.0, and the project keeps all four SDKs on that contract.

The API has accepted domain since v4.2.0; 5.20.0 only moved it into the published contract. The API defaults to sam and returns 400 (*ValidationError) for a value it doesn't accept. Empty by default, so existing calls send the same request.

Testing

  • go vet ./... and go test -race ./... pass.
  • New TestListOpportunitiesForwardsDomain: domain is sent when set and omitted when empty.
  • golangci-lint isn't installed locally; CI's lint job covers it.

Not in this PR

  • No version bump; the entry sits under [Unreleased].
  • tango-go vendors no contract, so there's no contract refresh here.
  • The same change lands in tango-python, tango-node, and tango-rust in their own PRs.

🤖 Generated with Claude Code

`ListOpportunitiesOptions` gains `Domain`, sent as `domain`, which Tango's filter/shape contract publishes as of API 5.20.0. Empty by default, so existing calls send the same request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant