Skip to content

feat(types): nested refs + numerical_id#6

Closed
Mlaz-code wants to merge 1 commit into
mainfrom
feat/nested-refs-phase-1f
Closed

feat(types): nested refs + numerical_id#6
Mlaz-code wants to merge 1 commit into
mainfrom
feat/nested-refs-phase-1f

Conversation

@Mlaz-code
Copy link
Copy Markdown
Contributor

@Mlaz-code Mlaz-code commented May 7, 2026

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

  • New types: TeamRef, SportRef, EntityRef, Team
  • Existing odds + opportunity rows extend with optional home, away, sport_ref, league_ref, market_ref, sportsbook_ref
  • ArbitrageLeg gains sportsbook_ref; ClosingOddsLine/ClosingOdd gain market_ref + sportsbook_ref
  • Reference rows (Sport, League, Sportsbook, Market) gain numerical_id; Team adds abbreviation + numerical_id

Version bump

0.2.6 → 0.3.0 — minor bump (additive only).

Superseded by #7 (which contains these commits plus the TeamRef metadata follow-up and a public-release cleanup pass).

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]>
@Mlaz-code Mlaz-code changed the title feat(types): nested refs + numerical_id (Phase 1f) feat(types): nested refs + numerical_id May 7, 2026
@Mlaz-code
Copy link
Copy Markdown
Contributor Author

Superseded by #7. All commits on this branch are reachable from PR #7's head, plus the TeamRef metadata follow-up and a public-release cleanup pass.

@Mlaz-code Mlaz-code closed this May 7, 2026
@Mlaz-code Mlaz-code deleted the feat/nested-refs-phase-1f branch May 7, 2026 14:26
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