-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create yaml_conversion_specification_schema.json
- Loading branch information
1 parent
419c7ca
commit 68a41a5
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/neuroconv/schemas/yaml_conversion_specification_schema.json
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 |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |