From 7bc51b31120ca2a53426cae4db67ace6d4b390f5 Mon Sep 17 00:00:00 2001 From: Christian Oertlin Date: Fri, 5 Apr 2024 15:21:05 +0200 Subject: [PATCH] force detail --- genotype_api/dto/sample.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/genotype_api/dto/sample.py b/genotype_api/dto/sample.py index 8001bbd..0b2d2ea 100644 --- a/genotype_api/dto/sample.py +++ b/genotype_api/dto/sample.py @@ -25,10 +25,9 @@ class SampleResponse(BaseModel): sex: Sexes | None = None created_at: datetime | None = datetime.now() analyses: list[AnalysisOnSample] | None = None - detail: SampleDetail | None + detail: SampleDetail = None @field_validator("detail") - @classmethod def get_detail(cls, value, values) -> SampleDetail | None: analyses = values.get("analyses") if analyses: