Skip to content

Commit

Permalink
Added validation bids schema version to result object metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Nov 28, 2022
1 parent 8462051 commit 61a4ba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dandi/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def validate_bids(
for meta in validation_result["match_listing"]:
file_path = meta.pop("path")
meta = {BIDS_TO_DANDI[k]: v for k, v in meta.items() if k in BIDS_TO_DANDI}
meta["bids_schema_version"] = validation_result["bids_version"]
if parent_path != os.path.dirname(file_path):
parent_path = os.path.dirname(file_path)
dataset_path = find_parent_directory_containing(
Expand Down

0 comments on commit 61a4ba9

Please sign in to comment.