Skip to content

align model fields with API and add parity tests with 0.2.0 version bump#4

Merged
camodotgg merged 2 commits intomainfrom
fix/api-field-parity
Jan 10, 2026
Merged

align model fields with API and add parity tests with 0.2.0 version bump#4
camodotgg merged 2 commits intomainfrom
fix/api-field-parity

Conversation

@camodotgg
Copy link
Copy Markdown
Owner

Breaking changes:

  • Remove draws field from MatchTypeStats (now computed property)
  • Remove best_time_id field from MatchTypeStats
  • Remove LiveMatchPlayer class (use LivePlayerData instead)

Additions:

  • Add completion_time field to MatchTypeStats
  • Add seed_type, bastion_type, game_mode, bot_source to MatchInfo
  • Add flags field to WeeklyRaceSeed
  • Add comprehensive fixture parity tests (test_fixture_parity.py)
  • Add tests for UserLiveMatch, VodInfo, UserStatistics, WeeklyRaceResult

Fixes:

  • Correct alias casing: highestWinstreak -> highestWinStreak
  • Correct alias casing: currentWinstreak -> currentWinStreak

BREAKING CHANGES:
- Remove `draws` field from MatchTypeStats (now computed property)
- Remove `best_time_id` field from MatchTypeStats
- Remove `LiveMatchPlayer` class (use LivePlayerData instead)

Additions:
- Add `completion_time` field to MatchTypeStats
- Add `seed_type`, `bastion_type`, `game_mode`, `bot_source` to MatchInfo
- Add `flags` field to WeeklyRaceSeed
- Add comprehensive fixture parity tests (test_fixture_parity.py)
- Add tests for UserLiveMatch, VodInfo, UserStatistics, WeeklyRaceResult

Fixes:
- Correct alias casing: highestWinstreak -> highestWinStreak
- Correct alias casing: currentWinstreak -> currentWinStreak
@camodotgg camodotgg merged commit 3a909d4 into main Jan 10, 2026
4 checks passed
@camodotgg camodotgg deleted the fix/api-field-parity branch January 10, 2026 19:58
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