Skip to content

Commit

Permalink
fix validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Apr 5, 2024
1 parent e698c42 commit 80e20be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions genotype_api/dto/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class SampleResponse(BaseModel):
detail: SampleDetail | None

@field_validator("detail")
@classmethod
def get_detail(cls, value, values) -> SampleDetail | None:
analyses = values.get("analyses")
if analyses:
Expand Down

0 comments on commit 80e20be

Please sign in to comment.