From 5b338cacd093f49b1fd82b47873e1730e6f8f937 Mon Sep 17 00:00:00 2001 From: Ross Blair Date: Fri, 3 Nov 2023 11:07:21 -0500 Subject: [PATCH] fix missing pattern properties in reference_frame schema --- .../validators/json/schemas/channels.json | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/bids-validator/validators/json/schemas/channels.json b/bids-validator/validators/json/schemas/channels.json index fd97cf7ec..e4be45d89 100644 --- a/bids-validator/validators/json/schemas/channels.json +++ b/bids-validator/validators/json/schemas/channels.json @@ -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}$" + } + } } } } - } + } } } },