Skip to content

Fix SAMS match loading for null team MVP fields - #49

Merged
terijaki merged 1 commit into
mainfrom
terijaki/8d576a54
Jul 23, 2026
Merged

Fix SAMS match loading for null team MVP fields#49
terijaki merged 1 commit into
mainfrom
terijaki/8d576a54

Conversation

@terijaki

Copy link
Copy Markdown
Owner

Summary

  • Accept null for team1Mvp / team2Mvp in the SAMS OpenAPI client patch (same $ref nullable pattern as results / referees / location).
  • Regenerates Zod/types so unplayed league matches validate instead of being discarded, which left match listings empty.

Same fix as terijaki/vcmuellheim#376.

Test plan

  • Local Zod parse of LeagueMatchDto with team1Mvp: null / team2Mvp: null succeeds after regen
  • Confirm live getAllLeagueMatches responses for the current season include null MVP fields and no longer fail response validation
  • After deploy, check match pages (/matches, homepage Heimspiele, team pages) show upcoming fixtures

Unplayed league matches return team1Mvp/team2Mvp as null; the generated Zod schema rejected those responses and dropped match pages.
@terijaki
terijaki enabled auto-merge (squash) July 23, 2026 14:48
@terijaki
terijaki merged commit b9d0b23 into main Jul 23, 2026
7 checks passed
@terijaki
terijaki deleted the terijaki/8d576a54 branch July 23, 2026 15:14
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