Skip to content

Commit

Permalink
fix missing pattern properties in reference_frame schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Nov 3, 2023
1 parent 0718b61 commit 5b338ca
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions bids-validator/validators/json/schemas/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,34 @@
"properties": {
"reference_frame": {
"title": "Reference Frame",
"type": "object",
"properties": {
"Levels": {
"properties": {
"RotationOrder": {
"description": "The sequence in which the extrinsic rotations are applied around the three axes.",
"type": "string",
"enum": ["XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX"]
},
"RotationRule": {
"description": "The direction of rotation around each axis.",
"type": "string",
"enum": ["left-hand", "right-hand"]
},
"SpatialAxes": {
"description": "The coordinate system in which the motion data are to be interpreted. A sequence of characters from the set `{'A', 'P', 'L', 'R', 'S', 'I', '_'}` indicating the direction of each axis. For example `\"ARS\"` indicates positive values in the X, Y, Z axes are respectively anterior, right, and superior of the origin, while `\"PLI\"` indicates positive values are posterior, left, and inferior of the origin. The `\"_\"` character may be used for unused axes.",
"type": "string",
"pattern": "^[APLRSI_]{3}$"
"type": "object",
"patternProperties": {
"^.+$": {
"type": "object",
"properties": {
"RotationOrder": {
"description": "The sequence in which the extrinsic rotations are applied around the three axes.",
"type": "string",
"enum": ["XYZ", "XZY", "YXZ", "YZX", "ZXY", "ZYX"]
},
"RotationRule": {
"description": "The direction of rotation around each axis.",
"type": "string",
"enum": ["left-hand", "right-hand"]
},
"SpatialAxes": {
"description": "The coordinate system in which the motion data are to be interpreted. A sequence of characters from the set `{'A', 'P', 'L', 'R', 'S', 'I', '_'}` indicating the direction of each axis. For example `\"ARS\"` indicates positive values in the X, Y, Z axes are respectively anterior, right, and superior of the origin, while `\"PLI\"` indicates positive values are posterior, left, and inferior of the origin. The `\"_\"` character may be used for unused axes.",
"type": "string",
"pattern": "^[APLRSI_]{3}$"
}
}
}
}
}
}
}
}
}
},
Expand Down

0 comments on commit 5b338ca

Please sign in to comment.