pynwb
pynwb copied to clipboard
[Bug]: Validator does not raise error on missing ``DynamicTableRegion.table/description`` attributes
What happened?
In https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issuecomment-1121507931 @CodyCBakerPhD shows a case where the required attributes table and description are being omitted/removed from a DynamicTableRegion. This (not surprisingly) causes the file to fail on read, however, validation still passes. This seems to indicate that there is some sort of bug or error with the validator, in that it either fails to check for (some) attributes or assumes that attributes are optional when they should be treated as required.
Steps to Reproduce
See the code example at https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issuecomment-1121507931
Traceback
See the traceback https://github.com/NeurodataWithoutBorders/pynwb/issues/1468#issue-1223304977
Operating System
macOS
Python Executable
Python
Python Version
3.8
Package Versions
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] Have you checked the Contributing document?
- [X] Have you ensured this bug was not already reported?