File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1- DANDI_SCHEMA_VERSION = "0.6.9 "
1+ DANDI_SCHEMA_VERSION = "0.6.10 "
22ALLOWED_INPUT_SCHEMAS = [
33 "0.4.4" ,
44 "0.5.1" ,
1212 "0.6.6" ,
1313 "0.6.7" ,
1414 "0.6.8" ,
15+ "0.6.9" ,
1516 DANDI_SCHEMA_VERSION ,
1617]
1718
Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ class Person(Contributor):
966966class Software (DandiBaseModel ):
967967 identifier : Optional [RRID ] = Field (
968968 None ,
969- pattern = r"^RRID\ :.*" ,
969+ pattern = r"^RRID:.*" ,
970970 title = "Research resource identifier" ,
971971 description = "RRID of the software from scicrunch.org." ,
972972 json_schema_extra = {"nskey" : "schema" },
@@ -1612,7 +1612,7 @@ def contributor_musthave_contact(
16121612 identifier : DANDI = Field (
16131613 title = "Dandiset identifier" ,
16141614 description = "A Dandiset identifier that can be resolved by identifiers.org." ,
1615- pattern = r"^DANDI\ :\d{6}$" ,
1615+ pattern = r"^DANDI:\d{6}$" ,
16161616 json_schema_extra = {"readOnly" : True , "nskey" : "schema" },
16171617 )
16181618 name : str = Field (
Original file line number Diff line number Diff line change @@ -429,7 +429,14 @@ def test_migrate_044(schema_dir: Path) -> None:
429429 ]
430430
431431 # if already the target version - we do not change it, and do not crash
432- newmeta_2 = migrate (newmeta , to_version = DANDI_SCHEMA_VERSION )
432+ newmeta_2 = migrate (
433+ newmeta ,
434+ to_version = DANDI_SCHEMA_VERSION ,
435+ # to avoid possible crash due to attempt to download not yet
436+ # released schema if we are still working within yet to be
437+ # released version of the schema
438+ skip_validation = True ,
439+ )
433440 assert newmeta_2 == newmeta
434441 assert newmeta_2 is not newmeta # but we do create a copy
435442
You can’t perform that action at this time.
0 commit comments