bids-standard / bids-2-devel

Discussions and suggestions of backwards incompatible changes to BIDS
https://bids.neuroimaging.io/
Creative Commons Attribution 4.0 International
11 stars 1 forks source link

Custom prefix (X-) for arbitrary columns in .tsv files #86

Open yarikoptic opened 1 month ago

yarikoptic commented 1 month ago

This is a twin for

which is IMHO more obvious/easier to address. Relates to

in a step towards unification.

Should be easy to automatically migrate on BIDS 1 -to- 2.

effigies commented 1 month ago

Just a note that it is often convenient for fields in JSON and columns in TSV to have names that are valid identifiers, which are typically /[A-Za-z0-9_]+/.

yarikoptic commented 1 month ago

so ___ or 0 is valid too? Should we aim to constrain more, e.g. /[A-Za-z][A-Za-z0-9_]*/ if we are to not enforce camel-vs-snake but at least for it to start with a letter?

effigies commented 1 month ago

At least javascript is happy to have "0" or "__" as keys, but sure, there is a safer regex.