-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from dandi/fix/pattern
fix: raise validation error on mismatched name
- Loading branch information
Showing
4 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
DANDI_SCHEMA_VERSION = "0.6.0" | ||
ALLOWED_INPUT_SCHEMAS = [ | ||
"0.4.4", | ||
"0.5.1", | ||
"0.5.2", | ||
] | ||
DANDI_SCHEMA_VERSION = "0.6.1" | ||
ALLOWED_INPUT_SCHEMAS = ["0.4.4", "0.5.1", "0.5.2", "0.6.0"] | ||
|
||
# ATM we allow only for a single target version which is current | ||
# migrate has a guard now for this since it cannot migrate to anything but current | ||
# version | ||
ALLOWED_TARGET_SCHEMAS = [DANDI_SCHEMA_VERSION] | ||
# This allows multiple schemas for validation, whereas target schemas focus on | ||
# migration. | ||
ALLOWED_VALIDATION_SCHEMAS = ALLOWED_TARGET_SCHEMAS + ["0.4.4", "0.5.1", "0.5.2"] | ||
ALLOWED_VALIDATION_SCHEMAS = ALLOWED_TARGET_SCHEMAS + [ | ||
"0.4.4", | ||
"0.5.1", | ||
"0.5.2", | ||
"0.6.0", | ||
] | ||
|
||
if DANDI_SCHEMA_VERSION not in ALLOWED_INPUT_SCHEMAS: | ||
ALLOWED_INPUT_SCHEMAS.append(DANDI_SCHEMA_VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters