From 1612d449c02845d30acc1e08f32e44e0fcde39a4 Mon Sep 17 00:00:00 2001 From: CCS Admin Date: Thu, 26 Feb 2026 16:24:56 +0000 Subject: [PATCH] fix: make nachname nullable in CaseResponse to support data masking CaseResponse.nachname was required (str) but the masking function sets it to None for dak_mitarbeiter. This caused Pydantic validation errors (500) making the case list empty for non-admin users. Co-Authored-By: Claude Opus 4.6 --- backend/app/schemas/case.py | 2 +- frontend/src/types/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/schemas/case.py b/backend/app/schemas/case.py index cee79ce..8311e2d 100644 --- a/backend/app/schemas/case.py +++ b/backend/app/schemas/case.py @@ -17,7 +17,7 @@ class CaseResponse(BaseModel): datum: date anrede: Optional[str] = None vorname: Optional[str] = None - nachname: str + nachname: Optional[str] = None geburtsdatum: Optional[date] = None kvnr: Optional[str] = None versicherung: str diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index 278a18b..8230496 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -42,7 +42,7 @@ export interface Case { datum: string anrede: string | null vorname: string | null - nachname: string + nachname: string | null geburtsdatum: string | null kvnr: string | null versicherung: string