Skip to content

Commit

Permalink
Create yaml_conversion_specification_schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Jul 21, 2022
1 parent 419c7ca commit 68a41a5
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/neuroconv/schemas/yaml_conversion_specification_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "yaml_conversion_specification_schema.json",
"title": "YAML conversion specification schema",
"description": "Schema for a NWB conversion specified by a YAML file.",
"version": "0.1.0",
"type": "object",
"allOf": [{"$ref": "#/$defs/level"}],
"required": ["experiments"],
"properties": {
"experiments": {
"type": "object",
"additionalProperties": {
"type": "object",
"allOf": [{"$ref": "#/$defs/level"}],
"required": ["sessions"],
"properties": {
"sessions": {
"type": "array",
"items": {
"title": "Single-session specification",
"type": "object",
"required": ["source_data"],
"allOf": [{"$ref": "#/$defs/level"}],
"properties": {
"nwbfile_name": {"type": "string"},
"source_data": {"type": "object"}
}
}
}
}
}
}
},
"$defs": {
"level": {
"type": "object",
"properties": {
"metadata": {"$ref": "./metadata_schema.json#"},
"conversion_options": {"type": "object"},
"data_interfaces": {
"type": "array",
"items": {
"title": "DataInterface",
"type": "string"
}
}
}
}
}
}

0 comments on commit 68a41a5

Please sign in to comment.