-
Notifications
You must be signed in to change notification settings - Fork 15
BEP020 patches #260
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
base: main
Are you sure you want to change the base?
BEP020 patches #260
Conversation
@rwblair @julia-pfarr I think that this approach (of having a Unfortunately, this means we can't use normal sidecar rules to indicate that the error should be fixed in a particular If we want to think about expanding schema/validator capabilities, we could allow EyetrackingStimulusPresentation:
issue:
code: JSON_KEY_MISSING
level: error
message: |
`StimulusPresentation` metadata for the events file associated with {path}
({associations.events.path}) must have `ScreenDistance`, `ScreenOrigin`,
`ScreenResolution` and `ScreenSize` fields.
selectors:
- suffix == 'physio'
- sidecar.PhysioType == 'eyetrack'
checks:
- 'ScreenDistance' in associations.events.sidecar.StimulusPresentation
- 'ScreenOrigin' in associations.events.sidecar.StimulusPresentation
- 'ScreenResolution' in associations.events.sidecar.StimulusPresentation
- 'ScreenSize' in associations.events.sidecar.StimulusPresentation It looks like there are a couple JS libraries to implement Python-like |
Yes, I think the empty As for your solution for the validator, I can't say much because I don't know the technical details of the validator, but I trust you that this is good solution! |
TODO:
Message interpolationSee feat: Add issue message formatting #267xref