Closed
Description
tools/pubschemata.py
publishes schema as json schema to https://github.com/dandi/schema . Conversion to json might "mutate" it so a correct according to pydantic's model metadata would not validate using that json schema and jsonschema
python package (is that what you were using @dchiquit? found no jsonschema import in dandi-api though).
- move
publish_model_schemata
fromtools/pubschemata.py
intodandi/metadata.py
- add a function to validate metadata given provided json schema directory (as produced by
publish_model_schemata
) - verify that metadata validates using that schema and jsonschema:
- add tests: in http://github.com/dandi/dandi-cli/blob/HEAD/dandi/tests/test_metadata.py we already have some quite detailed sample cases for dandiset level metadata migration.
Metadata
Assignees
Labels
No labels