Account for all loaded namespaces during validation #608
Labels
category: bug
errors in the code or code behavior
topic: validator
issues related to validation of files
Description
Validation on cached schema currently validates against only the most specific namespaces. For example, if one were to draw a dependency tree:
Then validation would occur on the leaves of the tree: ndx-a, ndx-b, and hdmf-experimental. Data types are found in one namespace and not another (e.g., NWBFile is not in hdmf-experimental. NewTypeA that is defined in ndx-a is not in ndx-b.) and this causes validation to fail.
There are also other cross-namespace linking and inheritance considerations to account for. For example, if ndx-a defines a type with a dataset
name: column; neurodata_type_inc: VectorData
and ndx-b defines a typeneurodata_type_def: MyVectorData; neurodata_type_inc: VectorData
, thenMyVectorData
should be allowed for the 'column' dataset in ndx-a.See also #525 and #542 (comment)
Environment
Checklist
The text was updated successfully, but these errors were encountered: