Skip to content

Commit

Permalink
use validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Apr 5, 2024
1 parent 6310224 commit e698c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genotype_api/dto/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SampleResponse(BaseModel):
sex: Sexes | None = None
created_at: datetime | None = datetime.now()
analyses: list[AnalysisOnSample] | None = None
detail: SampleDetail | None = None
detail: SampleDetail | None

@field_validator("detail")
def get_detail(cls, value, values) -> SampleDetail | None:
Expand Down

0 comments on commit e698c42

Please sign in to comment.