From 008b36e51bde3a67cce534ed65874f12e5b4ba5e Mon Sep 17 00:00:00 2001 From: caila-marashaj Date: Mon, 26 Aug 2024 11:23:59 -0400 Subject: [PATCH] schema structure changes --- shared-data/labware/schemas/3.json | 5 ++++- shared-data/python/tests/labware/__init__.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/shared-data/labware/schemas/3.json b/shared-data/labware/schemas/3.json index 89f6cc8c1b4a..b0aacd13332c 100644 --- a/shared-data/labware/schemas/3.json +++ b/shared-data/labware/schemas/3.json @@ -67,6 +67,7 @@ }, "CircularCrossSection": { "type": "object", + "required": ["shape", "diameter"], "properties": { "shape": { "type": "string", @@ -79,6 +80,7 @@ }, "RectangularCrossSection": { "type": "object", + "required": ["shape", "xDimension", "yDimension"], "properties": { "shape": { "type": "string", @@ -94,6 +96,7 @@ }, "SphericalSegment": { "type": "object", + "required": ["shape", "radiusOfCurvature", "depth"], "properties": { "shape": { "type": "string", @@ -462,7 +465,7 @@ "description": "Recommended Z-height, from labware bottom to the center of gripper pads, when gripping the labware." }, "innerLabwareGeometry": { - "type": "object", + "type": ["object", "null"], "description": "A dictionary holding all unique inner well geometries in a labware.", "additionalProperties": { "$ref": "#/definitions/InnerWellGeometry" diff --git a/shared-data/python/tests/labware/__init__.py b/shared-data/python/tests/labware/__init__.py index f6f8dfe65fc5..f0eba74bf9f5 100644 --- a/shared-data/python/tests/labware/__init__.py +++ b/shared-data/python/tests/labware/__init__.py @@ -20,4 +20,4 @@ def get_ot_defs_3() -> List[Tuple[str, int]]: Path(__file__).parent / ".." / ".." / ".." / "labware" / "definitions" / "3" ).glob("**/*.json") return [(f.parent.name, int(f.stem)) for f in def_files] -""" \ No newline at end of file +"""