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

Validator should check for quantity #197

Closed
rly opened this issue Nov 13, 2019 · 1 comment · Fixed by #500
Closed

Validator should check for quantity #197

rly opened this issue Nov 13, 2019 · 1 comment · Fixed by #500
Labels
category: enhancement improvements of code or code behavior topic: validator issues related to validation of files

Comments

@rly
Copy link
Contributor

rly commented Nov 13, 2019

Currently, the validator checks whether required fields are present, but does not validate that a dataset conforms to the 'quantity' field. For example, in PyNWB, NWBFile has quantity '+' for Device, which means at least one is required. However, files without a Device pass the validator. Similarly for Position requiring at least one SpatialSeries, LFP requiring at least one ElectricalSeries, etc.

@rly rly added the category: enhancement improvements of code or code behavior label Nov 13, 2019
@rly rly added the topic: validator issues related to validation of files label Nov 25, 2020
@dsleiter
Copy link
Contributor

I am currently working on an implementation for this.

dsleiter added a commit to agencyenterprise/hdmf that referenced this issue Dec 11, 2020
* Fix hdmf-dev#197
* Includes new validator tests
* Refactor GroupValidator for readability
@rly rly closed this as completed in #500 Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: enhancement improvements of code or code behavior topic: validator issues related to validation of files
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants