Skip to content

Map birthday and entry date in the private-mode adapter - #474

Merged
PianoNic merged 1 commit into
mainfrom
fix/473_PrivateModeSchoolUserDto
Aug 13, 2026
Merged

Map birthday and entry date in the private-mode adapter#474
PianoNic merged 1 commit into
mainfrom
fix/473_PrivateModeSchoolUserDto

Conversation

@PianoNic

Copy link
Copy Markdown
Member

Private mode built SchoolUserDto without ever setting birthday or entryDate, while the generated model declared both non-nullable, so build() threw on every private-mode load regardless of the data. PrivateUserInfo already carried both values from the stateless endpoint; they were simply never mapped.

Regenerated the API client against a spec where SchoolUserDto.Birthday / EntryDate are nullable, and mapped the values through in PrivateDataAdapter. A Schulnetz account with no birthday now renders as -, which account_page.dart already handled.

Closes #473

@PianoNic PianoNic added the bug Something isn't working label Aug 13, 2026
@PianoNic
PianoNic merged commit f161bb8 into main Aug 13, 2026
@PianoNic
PianoNic deleted the fix/473_PrivateModeSchoolUserDto branch August 13, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Private mode fails to load SchoolUserDto

1 participant