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: Update datetime definition/regex to match specification #2002

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

effigies
Copy link
Collaborator

As noted in #1968 and bids-standard/bids-validator#131, we fail to validate timestamps with the Z, but instead permit arbitrary 2-4 character upper-case strings. This goes against what the spec actually says.

This PR narrowly brings the schema into line with the text of BIDS 1.10.0. In #2001, I propose permitting the full range of RFC3339 values to handle needs for non-zero offsets.

Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we were previously allowing any timezone code. The change seems to fix that.

@effigies effigies added exclude-from-changelog This item will not feature in the automatically generated changelog schema Issues related to the YAML schema representation of the specification. Patch version release. labels Dec 11, 2024
@effigies effigies merged commit d5d4467 into bids-standard:maint/1.10.0 Dec 11, 2024
17 of 18 checks passed
@effigies effigies deleted the fix/datetime-offsets branch December 11, 2024 16: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 Issues related to the YAML schema representation of the specification. Patch version release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants