Repository navigation
feat(vehicles): request holder_count and order_winner_count in the default vehicle shapes - #11
Draft
makegov-mark[bot] wants to merge 1 commit into
Draft
makegov-mark[bot] wants to merge 1 commit into
makegov-mark[bot] wants to merge 1 commit into
Conversation
…fault vehicle shapes Tango API 5.8.0 adds two company counts to vehicles: holder_count (distinct companies holding one of the vehicle's IDVs) and order_winner_count (distinct companies that have won a task order under it). awardee_count is now a deprecated alias of order_winner_count and stays in the shapes so existing readers keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
ShapeVehiclesMinimal(default forListVehicles) andShapeVehiclesComprehensive(default forGetVehicle) now requestholder_countandorder_winner_count, right afterawardee_count.TestVehicleShapesCarryCompanyCountsasserts both default vehicle shapes carryawardee_count,holder_countandorder_winner_count.CHANGELOG.md(Unreleased: Added + Deprecated) anddocs/SHAPES.mdupdated.Why
Tango API 5.8.0 adds two company counts to vehicles, both in the API's default list and detail shapes:
holder_count: distinct companies holding one of the vehicle's IDVs.order_winner_count: distinct companies that have won a task order under the vehicle.awardee_countis now a deprecated alias oforder_winner_countand will be removed at the API's next major version. The SDK keeps requesting it so existing readers don't break; new code should readorder_winner_count.Vehicles return untyped
Recordmaps in this SDK, so there is no struct to extend.Merge timing
Merge only after the Tango API 5.8.0 deploy is live. Before then the API rejects the two new field names in a shape, so
ListVehicles/GetVehiclewith the default shapes would fail.Testing
go test ./...andgo test -race ./...: pass.go vet ./...: clean;gofmt -l .: clean.golangci-lint: the repo's.golangci.ymldoesn't load under the locally installed golangci-lint 2.14 (output.formatsschema), so it was run with--no-config; its 10 findings are identical with and without this change (none in touched files).🤖 Generated with Claude Code