Skip to content

add testing that a prototypical dandiset metadata validates using converted to json schema #332

Closed
@yarikoptic

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 from tools/pubschemata.py into dandi/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:

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions