dandi / dandi/dandi-schema

Confusing behavior when using older version of dandischema

Open
#134 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
15
PR merge metrics
No merged PRs in 30d

Description

When using a version of dandischema that's behind `DANDI_SCHEMA_VERSION`, the local schema is not used, but rather the schema is fetched from dandischema releases. The code shown below is where this occurs

https://github.com/dandi/dandi-schema/blob/6e994623929db23099764de2ab796291305fa57c/dandischema/metadata.py#L174-L187

This is rather confusing behavior if you're relying on modifications to the local schema, like [using localhost urls](https://github.com/dandi/dandi-schema/pull/128), since the schema that is used for validation will be independent of any changes you have. Is there some way this can be improved?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.