File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8585 "[a-f0-9]{8}[-]*[a-f0-9]{4}[-]*" "[a-f0-9]{4}[-]*[a-f0-9]{4}[-]*[a-f0-9]{12}$"
8686)
8787ASSET_UUID_PATTERN = r"^dandiasset:" + UUID_PATTERN
88- VERSION_PATTERN = r"\d{6}/\d+\.\d+\.\d+"
88+ VERSION_NUM_PATTERN = r"\d+\.\d+\.\d+"
89+ VERSION_PATTERN = rf"\d{{6}}/{ VERSION_NUM_PATTERN } "
8990_INNER_DANDI_DOI_PATTERN = (
9091 rf"{ DOI_PREFIX_PATTERN } /{ ID_PATTERN .lower ()} \.{ VERSION_PATTERN } "
9192)
@@ -1666,7 +1667,7 @@ def contributor_musthave_contact(
16661667 id : str = Field (
16671668 description = "Uniform resource identifier" ,
16681669 pattern = (
1669- rf"^({ ID_PATTERN } |{ ID_PATTERN .lower ()} ):\d{{6}}(/(draft|\d+\.\d+\.\d+ ))$"
1670+ rf"^({ ID_PATTERN } |{ ID_PATTERN .lower ()} ):\d{{6}}(/(draft|{ VERSION_NUM_PATTERN } ))$"
16701671 ),
16711672 json_schema_extra = {"readOnly" : True },
16721673 )
You can’t perform that action at this time.
0 commit comments