garrettmflynn / webnwb

A JavaScript API for working with neurodata stored in the NWB Format
https://brainsatplay.com/webnwb/tutorial
GNU Affero General Public License v3.0
5 stars 1 forks source link

Indicate missing and non-compliant metadata in the object editor #8

Open garrettmflynn opened 1 year ago

garrettmflynn commented 1 year ago

Description

webnwb should maintain an awareness of the attached JSON Schema and support validation of file properties using a variety of mechanisms, including:

  1. Direct validation with JSON Schema
  2. Attachment of arbitrary functions to specific paths / objects (e.g. all Subject instances should have a sex property that is one of four options)
    • This would be where the NWB Inspector could be used.

Resulting warnings and errors would then need to be represented in the EasyNWB object editor. A high-level review component could also be created (#7).