Skip to content

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

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

Fix SAMS match loading for null team MVP fields#376
terijaki merged 1 commit into
mainfrom
terijaki/d813f1e8

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 2026/27 league matches validate instead of being discarded, which left /termine empty in prod.

Test plan

Unplayed league matches return team1Mvp/team2Mvp as null; the generated Zod schema rejected those responses and left /termine empty for 2026/27.
@terijaki
terijaki enabled auto-merge (squash) July 23, 2026 14:45
@terijaki
terijaki merged commit 4c99ca9 into main Jul 23, 2026
6 checks passed
@terijaki
terijaki deleted the terijaki/d813f1e8 branch July 23, 2026 14:45
terijaki added a commit to terijaki/markgraefler-volleys that referenced this pull request Jul 23, 2026
## 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
- [x] 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
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