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

fix(json): Validate all JSON fields #2075

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

effigies
Copy link
Collaborator

The JSON validation code strongly assumed it was validating sidecars, not JSON files. These changes streamline the logic a bit to ensure that sidecars and JSON files are treated the same, but the sidecar "origin" code is skipped for JSON files.

Closes #2007.

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 87.17949% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.23%. Comparing base (ec73f3a) to head (4a2218b).

Files Patch % Lines
bids-validator/src/schema/applyRules.ts 87.17% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2075      +/-   ##
==========================================
+ Coverage   85.69%   87.23%   +1.53%     
==========================================
  Files          91      139      +48     
  Lines        3782     6800    +3018     
  Branches     1220     1607     +387     
==========================================
+ Hits         3241     5932    +2691     
- Misses        455      776     +321     
- Partials       86       92       +6     

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

The JSON validation code strongly assumed it was validating sidecars,
not JSON files. These changes streamline the logic a bit to ensure that
sidecars and JSON files are treated the same, but the sidecar "origin"
code is skipped for JSON files.
@effigies effigies force-pushed the fix/json-validation-logic branch from 5a6bf6b to 5c82715 Compare August 12, 2024 19:04
@rwblair rwblair merged commit 34f1d89 into bids-standard:master Aug 13, 2024
13 of 16 checks passed
@effigies effigies deleted the fix/json-validation-logic branch August 13, 2024 18:59
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.

Validate dataset_description.json contents
2 participants