Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Validation finds unexpected elements (#542)" #583

Closed
wants to merge 1 commit into from
Closed

Conversation

rly
Copy link
Contributor

@rly rly commented Apr 22, 2021

#542 introduced warnings for extra fields but treats attributes added to a spec as extra fields. This is problematic for PyNWB because in the NWB schema, the Units table contains the column with spec name: spike_times; neurodata_type_inc: VectorData; attributes: [new attribute for resolution]. The resolution attribute is flagged as an extra field. Upon further discussion at hdmf-dev/hdmf-schema-language#13 , we decided to continue allowing this case (this use case may also appear in extensions).

This means that #542 as is will break validation of NWB files with the Units/spike_times.resolution field (and files with extensions that have this case). @dsleiter has graciously agreed to work on resolving this issue in a separate PR. In the meantime, in order to prepare for the upcoming 2.5 minor release, this PR reverts commit 67cffec (#542).

We will reintroduce this commit in a separate PR post-release.

@rly
Copy link
Contributor Author

rly commented Apr 22, 2021

Replaced by #583.

@rly rly closed this Apr 22, 2021
@rly rly deleted the revert_542 branch April 22, 2021 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant