hdmf icon indicating copy to clipboard operation
hdmf copied to clipboard

Validate illegally-linked objects and nest errors inside IllegalLinkError

Open dsleiter opened this issue 4 years ago • 0 comments

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:

  1. illegally-linked objects do get validated, but
  2. any validation errors produced while validating the illegally-linked object should be nested inside the IllegalLinkError for 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?

dsleiter avatar Feb 15 '21 02:02 dsleiter