From 15f606c14bd90068e6afaa5c113e671a664d73a2 Mon Sep 17 00:00:00 2001 From: CaseyBatten Date: Fri, 13 Dec 2024 15:39:08 -0500 Subject: [PATCH] api version error cleanup --- api/src/opentrons/protocol_api/validation.py | 2 +- shared-data/labware/schemas/2.json | 9 ++++++++- shared-data/labware/schemas/3.json | 9 ++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/api/src/opentrons/protocol_api/validation.py b/api/src/opentrons/protocol_api/validation.py index ce7811f5c7d..faef92f67ce 100644 --- a/api/src/opentrons/protocol_api/validation.py +++ b/api/src/opentrons/protocol_api/validation.py @@ -382,7 +382,7 @@ def ensure_definition_is_not_lid_after_api_version( and api_version >= LID_STACK_VERSION_GATE ): raise APIVersionError( - f"Labware Lids cannot be loaded like standard labware in Protocols written with an API version greater than {APIVersion(2,24)}." + f"Labware Lids cannot be loaded like standard labware in Protocols written with an API version greater than {LID_STACK_VERSION_GATE}." ) diff --git a/shared-data/labware/schemas/2.json b/shared-data/labware/schemas/2.json index 7e292a0b720..51ff453829a 100644 --- a/shared-data/labware/schemas/2.json +++ b/shared-data/labware/schemas/2.json @@ -338,7 +338,14 @@ "description": "Allowed behaviors and usage of a labware in a protocol.", "items": { "type": "string", - "enum": ["labware", "adapter", "fixture", "maintenance", "lid", "system"] + "enum": [ + "labware", + "adapter", + "fixture", + "maintenance", + "lid", + "system" + ] } }, "stackingOffsetWithLabware": { diff --git a/shared-data/labware/schemas/3.json b/shared-data/labware/schemas/3.json index a813fdfc0ba..a663f063a6a 100644 --- a/shared-data/labware/schemas/3.json +++ b/shared-data/labware/schemas/3.json @@ -568,7 +568,14 @@ "description": "Allowed behaviors and usage of a labware in a protocol.", "items": { "type": "string", - "enum": ["labware", "adapter", "fixture", "maintenance", "lid", "system"] + "enum": [ + "labware", + "adapter", + "fixture", + "maintenance", + "lid", + "system" + ] } }, "stackingOffsetWithLabware": {