hdmf
hdmf copied to clipboard
Validate illegally-linked objects and nest errors inside IllegalLinkError
Coming from the conversation here: https://github.com/hdmf-dev/hdmf/issues/514
Following #515, when an illegally-linked dataset or group (a LinkBuilder is observed where a dataset or group spec has linkable=False) is encountered, that object will not be validated.
As an improvement, we would like that:
- illegally-linked objects do get validated, but
- any validation errors produced while validating the illegally-linked object should be nested inside the
IllegalLinkErrorfor that object
Additional context
Note that as linkable=False is rarely used (as of the creation of this issue), this is probably not a very high-priority issue.
Checklist
- [x] Have you ensured the feature or change was not already reported ?
- [x] Have you included a brief and descriptive title?
- [x] Have you included a clear description of the problem you are trying to solve?
- [ ] Have you included a minimal code snippet that reproduces the issue you are encountering?
- [x] Have you checked our Contributing document?