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

[SCHEMATOOLS] Implement inheritance for all TSV/JSON files #1671

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

effigies
Copy link
Collaborator

The previous implementation assumed that, if a file rule only contained TSV or JSON files, then at least one of these was not inheritable. This seems to contradict the inheritance principle, unless the files cease to be "metadata" files, as well as fails to validate actual files in examples, such as channels.tsv and events.tsv.

If the rule needs to become more complex, the schema will need a way to indicate whether a rule addresses data or metadata files.

@effigies effigies added schema-code Updates or changes to the code used to parse, filter, and render the schema. exclude-from-changelog This item will not feature in the automatically generated changelog labels Dec 17, 2023
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (51f1d1f) 87.97% compared to head (7d8844e) 87.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1671      +/-   ##
==========================================
- Coverage   87.97%   87.93%   -0.05%     
==========================================
  Files          16       16              
  Lines        1356     1351       -5     
==========================================
- Hits         1193     1188       -5     
  Misses        163      163              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies merged commit 830dbcb into bids-standard:master Feb 22, 2024
25 of 26 checks passed
@effigies effigies deleted the schemacode/tsv-inheritance branch February 22, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog schema-code Updates or changes to the code used to parse, filter, and render the schema.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants