Repository navigation
feat: catch up to Tango API 5.11.0 (parity with tango-python 1.18.1) - #12
Merged
Merged
Conversation
- Federal Register documents: ListFederalRegisterDocuments, IterateFederalRegisterDocuments and GetFederalRegisterDocument, with every API filter named and two shape presets. - Agency filter on budget accounts, exclusions and IT Dashboard; CycleName on SBIR topics; Awarded and AwardeeUEI on opportunities; CommercialItemAcquisitionProcedures on contracts and IDVs; HasAwards on the new ListPSCOptions (breaking: ListPSC now takes *ListPSCOptions). - PaginatedResponse gains Meta (with AgencyWarnings, UnresolvedAgencyTokens and ResolvedAgencies) and a per-response CountType from the X-Results-CountType header. - ObligationsByFiscalYear decodes the obligations_by_fiscal_year expand. - Docs for the pass-through shape fields: organization expands, award leaves, file and link counts, attachments(extraction_status), pipe-joined UEIs and matched_by; IT Dashboard tier fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A non-2xx response with no dedicated error type now returns an `*APIError` whose `Message` ends with the API's own explanation, read from the body's `error`, `message` or `detail` (also when nested under `detail`), matching tango-python 1.18.1. The parsed body stays on `ResponseData`, and a non-JSON body such as a proxy's 502 page keeps the old message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vdavez
force-pushed
the
feat/api-5.11.0-catchup
branch
from
October 19, 2026 19:52
a58d4c7 to
b76e1e7
Compare
vdavez
marked this pull request as ready for review
October 19, 2026 19:52
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.
What
Brings tango-go up to Tango API 5.11.0, matching tango-python 1.18.1, for everything not already covered by #9 (eBuy), #10 (budget categories, anomalies and
data_through_period) and #11 (vehicle company counts).ListFederalRegisterDocuments,IterateFederalRegisterDocuments,GetFederalRegisterDocument(by uuid), all seventeen filters onListFederalRegisterDocumentsOptions, andShapeFederalRegisterMinimal/ShapeFederalRegisterComprehensive(neither namesfull_text).Agencyon budget accounts, exclusions and IT Dashboard (API 5.3.0);CycleNameon SBIR topics (5.3.1);Awarded/AwardeeUEIon opportunities (5.5.0);CommercialItemAcquisitionProcedureson contracts and IDVs, which also reachesListIDVAwards/ListIDVChildIDVs(5.10.0);HasAwardson PSC.PaginatedResponse.Meta(previously dropped) withAgencyWarnings(),UnresolvedAgencyTokens()andResolvedAgencies(), andCountTyperead from each response's ownX-Results-CountTypeheader.ObligationsByFiscalYear(row)decodes theobligations_by_fiscal_year(fiscal_year, obligated)expand (5.11.0) into[]FiscalYearObligation.*APIErrorwhoseMessageends with the server's reason (API request failed with status 403: ...), read fromerror,messageordetail, including one nested underdetail. The parsed body stays onResponseData; a non-JSON body keeps the bare message.Record:organization(...)expands, opportunity award leaves andawards(...), file and link counts,attachments(extraction_status),matched_by, pipe-joined UEIs, the current alert query types, and the corrected IT Dashboard filter tiers.Breaking
ListPSCnow takes*ListPSCOptions(embeddingListOptions) instead of*ListOptions, to carryHasAwards. This is pre-1.0, so it ships without a deprecation cycle and is marked Breaking in the CHANGELOG.Not included
Testing
go vet,go test -raceand coverage (make ciminus lint) pass locally.QF1008style notes of the kind already present across the codebase, which v1 does not report. CI runs v1.falsereaching the server on the*boolfields), the Federal Register methods and presets, theMetaaccessors includingmatched_by, per-responseCountType, andObligationsByFiscalYearon full, narrowed, null, absent and malformed values.detailstring, a flat and a nested tier-gate body, a JSON body with no reason, and a non-JSON 502 page.Merge order
This branch is cut from
mainand overlaps #9, #10 and #11 only inCHANGELOG.md,docs/API_REFERENCE.md,shapes.go,budget.go,budget_test.goandtransport.go; it will be rebased once those land.🤖 Generated with Claude Code