Skip to content

Commit eecd2f6

Browse files
committed
Remove possibility for listing multiple GenotypeInfo for "genotype"
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!!!
1 parent 35f7792 commit eecd2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dandischema/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ class Participant(DandiBaseModel):
14531453
"available. (e.g. from OBI)",
14541454
json_schema_extra={"nskey": DANDI_NSKEY},
14551455
)
1456-
genotype: Optional[Union[List[GenotypeInfo], Identifier]] = Field(
1456+
genotype: Optional[Union[GenotypeInfo, Identifier]] = Field(
14571457
None,
14581458
description="Genotype descriptor of participant or subject if available",
14591459
json_schema_extra={"nskey": DANDI_NSKEY},

0 commit comments

Comments
 (0)