Skip to content

Commit 0f8788a

Browse files
committed
Merge branch 'master' of https://github.com/dandi/dandi-schema into description-length
2 parents dd59aff + 782c421 commit 0f8788a

File tree

7 files changed

+1079
-86
lines changed

7 files changed

+1079
-86
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ out of the Pydantic models.
3535
## Resources
3636

3737
* To learn how to interact with the DANDI archive,
38-
see [the handbook](https://www.dandiarchive.org/handbook/).
38+
see the [DANDI Docs](https://docs.dandiarchive.org).
3939
* To file a feature request or bug report, go to https://github.com/dandi/helpdesk/issues/new/choose.
4040
* For all other issues, contact the DANDI team: help@dandiarchive.org.

dandischema/consts.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DANDI_SCHEMA_VERSION = "0.6.9"
1+
DANDI_SCHEMA_VERSION = "0.6.10"
22
ALLOWED_INPUT_SCHEMAS = [
33
"0.4.4",
44
"0.5.1",
@@ -12,15 +12,17 @@
1212
"0.6.6",
1313
"0.6.7",
1414
"0.6.8",
15+
"0.6.9",
16+
DANDI_SCHEMA_VERSION,
1517
]
1618

1719
# ATM we allow only for a single target version which is current
1820
# migrate has a guard now for this since it cannot migrate to anything but current
1921
# version
2022
ALLOWED_TARGET_SCHEMAS = [DANDI_SCHEMA_VERSION]
23+
2124
# This allows multiple schemas for validation, whereas target schemas focus on
2225
# migration.
23-
ALLOWED_VALIDATION_SCHEMAS = ALLOWED_TARGET_SCHEMAS + ALLOWED_INPUT_SCHEMAS
24-
25-
if DANDI_SCHEMA_VERSION not in ALLOWED_INPUT_SCHEMAS:
26-
ALLOWED_INPUT_SCHEMAS.append(DANDI_SCHEMA_VERSION)
26+
ALLOWED_VALIDATION_SCHEMAS = sorted(
27+
set(ALLOWED_INPUT_SCHEMAS).union(ALLOWED_TARGET_SCHEMAS)
28+
)

0 commit comments

Comments
 (0)