Skip to content

Commit

Permalink
api version error cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Dec 13, 2024
1 parent 3f1402a commit 15f606c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
)


Expand Down
9 changes: 8 additions & 1 deletion shared-data/labware/schemas/2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
9 changes: 8 additions & 1 deletion shared-data/labware/schemas/3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 15f606c

Please sign in to comment.