Skip to content

Commit

Permalink
Remove possibility for listing multiple GenotypeInfo for "genotype"
Browse files Browse the repository at this point in the history
That would avoid Union of a list with non-multivalued identifier. And we already have
data with string value describing the genotype -- it is not really an identifier!!!
  • Loading branch information
yarikoptic committed Oct 31, 2024
1 parent 50b63c0 commit b2205ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandischema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ class Participant(DandiBaseModel):
"available. (e.g. from OBI)",
json_schema_extra={"nskey": "dandi"},
)
genotype: Optional[Union[List[GenotypeInfo], Identifier]] = Field(
genotype: Optional[Union[GenotypeInfo, Identifier]] = Field(
None,
description="Genotype descriptor of participant or subject if available",
json_schema_extra={"nskey": "dandi"},
Expand Down

0 comments on commit b2205ac

Please sign in to comment.