psych-ds / psychds-validator

Validator tools for the psych-DS specification
1 stars 1 forks source link

Possible case where sidecar that doesn't apply to any datafile is not checked for certain rules #64

Open bleonar5 opened 3 weeks ago

bleonar5 commented 3 weeks ago

Description

In the current logic of the validate function, it may be the case that schema.org type checking is not applied to sidecars that don't apply to any datafile. For instance, in this directory:

.
├── data
│   ├── session_data
│   │   └── file_metadata.json
│   └── study-1_data.csv
└── dataset_description.json

The directory metadata file "file_metadata.json" is not in a position where its content would apply to any valid data files, so it would not be checked for schema compatibility.

This is definitely not a pressing issue, and it may just be a reasonable feature in reality, but this is just to note it.