mirror of
https://github.com/complexcaresolutions/dak.c2s.git
synced 2026-03-17 20:43:41 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
31a2d5a355
commit
1612d449c0
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ class CaseResponse(BaseModel):
|
||||||
datum: date
|
datum: date
|
||||||
anrede: Optional[str] = None
|
anrede: Optional[str] = None
|
||||||
vorname: Optional[str] = None
|
vorname: Optional[str] = None
|
||||||
nachname: str
|
nachname: Optional[str] = None
|
||||||
geburtsdatum: Optional[date] = None
|
geburtsdatum: Optional[date] = None
|
||||||
kvnr: Optional[str] = None
|
kvnr: Optional[str] = None
|
||||||
versicherung: str
|
versicherung: str
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export interface Case {
|
||||||
datum: string
|
datum: string
|
||||||
anrede: string | null
|
anrede: string | null
|
||||||
vorname: string | null
|
vorname: string | null
|
||||||
nachname: string
|
nachname: string | null
|
||||||
geburtsdatum: string | null
|
geburtsdatum: string | null
|
||||||
kvnr: string | null
|
kvnr: string | null
|
||||||
versicherung: string
|
versicherung: string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue