feat(types): nested refs + numerical_id#6
Closed
Mlaz-code wants to merge 1 commit into
Closed
Conversation
Add structured ref models (TeamRef, SportRef, EntityRef) and a Team reference model, then surface optional home/away/sport_ref/league_ref/ market_ref/sportsbook_ref on every odds, opportunity, and reference row shipping in api-adapters PR #489 + sharp-api-go PR #345. Reference endpoints (sports, leagues, sportsbooks, markets, teams) gain optional numerical_id, and Team adds optional abbreviation. All fields are additive — legacy clients see None. Bumps to 0.3.0 (minor — purely additive, no field renames or removals). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
Author
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.
Summary
Adds optional pydantic models for new nested reference fields. All additions are non-breaking — legacy clients keep working with the existing string fields.
What changes
TeamRef,SportRef,EntityRef,Teamhome,away,sport_ref,league_ref,market_ref,sportsbook_refArbitrageLeggainssportsbook_ref;ClosingOddsLine/ClosingOddgainmarket_ref+sportsbook_refSport,League,Sportsbook,Market) gainnumerical_id;Teamaddsabbreviation+numerical_idVersion bump
0.2.6 → 0.3.0— minor bump (additive only).