File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 100100PUBLISHED_VERSION_URL_PATTERN = (
101101 rf"^{ DANDI_INSTANCE_URL_PATTERN } /dandiset/{ VERSION_PATTERN } $"
102102)
103+ DANDISET_IDENTIFIER_PATTERN = rf"^{ ID_PATTERN } :\d{{6}}$"
103104MD5_PATTERN = r"[0-9a-f]{32}"
104105SHA256_PATTERN = r"[0-9a-f]{64}"
105106
@@ -1674,9 +1675,24 @@ def contributor_musthave_contact(
16741675 identifier : DANDI = Field (
16751676 title = "Dandiset identifier" ,
16761677 description = "A Dandiset identifier that can be resolved by identifiers.org." ,
1677- pattern = rf"^ { ID_PATTERN } :\d{{6}}$" ,
1678+ pattern = DANDISET_IDENTIFIER_PATTERN ,
16781679 json_schema_extra = {"readOnly" : True , "nskey" : "schema" },
16791680 )
1681+
1682+ otherIdentifiers : Annotated [
1683+ list [Annotated [str , StringConstraints (pattern = DANDISET_IDENTIFIER_PATTERN )]],
1684+ Field (
1685+ default_factory = list ,
1686+ title = "Other Dandiset identifiers" ,
1687+ description = "List of other Dandiset identifiers as the Dandiset "
1688+ "resides in other DANDI instances." ,
1689+ json_schema_extra = {
1690+ "readOnly" : True ,
1691+ "nskey" : "schema" ,
1692+ },
1693+ ),
1694+ ]
1695+
16801696 name : str = Field (
16811697 title = "Dandiset title" ,
16821698 description = "A title associated with the Dandiset." ,
You can’t perform that action at this time.
0 commit comments