Skip to content

Commit 85e34fd

Browse files
committed
Update nwb_schema: add pattern, minItems, and move opto_software
Added a pattern constraint to 'hemisphere' and 'opto_software' fields to ensure non-empty strings. Moved 'opto_software' definition above 'fs_gui_yamls' and removed its duplicate. Added 'minItems: 1' to 'epochs' array in 'fs_gui_yamls' to require at least one item.
1 parent f101f7e commit 85e34fd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/trodes_to_nwb/nwb_schema.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36306,7 +36306,8 @@
3630636306
"left",
3630736307
"right"
3630836308
],
36309-
"description": "Hemisphere of the brain where the virus is injected"
36309+
"description": "Hemisphere of the brain where the virus is injected",
36310+
"pattern": "^(.|\\s)*\\S(.|\\s)*$"
3631036311
},
3631136312
"ap_in_mm": {
3631236313
"$id": "#root/virus_injection/items/ap_in_mm",
@@ -36371,6 +36372,14 @@
3637136372
}
3637236373
}
3637336374
},
36375+
"opto_software": {
36376+
"$id": "#root/opto_software",
36377+
"title": "opto_software",
36378+
"type": "string",
36379+
"default": "fsgui",
36380+
"description": "Software used for optogenetic stimulation",
36381+
"pattern": "^(.|\\s)*\\S(.|\\s)*$"
36382+
},
3637436383
"fs_gui_yamls": {
3637536384
"$id": "#root/fs_gui_yamls",
3637636385
"title": "fs_gui_yamls",
@@ -36414,6 +36423,7 @@
3641436423
"title": "epochs",
3641536424
"type": "array",
3641636425
"default": [],
36426+
"minItems": 1,
3641736427
"items": {
3641836428
"$id": "#root/fs_gui_yamls/items/epochs/items",
3641936429
"title": "Items",
@@ -36501,13 +36511,6 @@
3650136511
}
3650236512
}
3650336513
}
36504-
},
36505-
"opto_software": {
36506-
"$id": "#root/opto_software",
36507-
"title": "opto_software",
36508-
"type": "string",
36509-
"default": "fsgui",
36510-
"description": "Software used for optogenetic stimulation"
3651136514
}
3651236515
}
3651336516
}

0 commit comments

Comments
 (0)