Skip to content

Commit

Permalink
fix(shared-data): Do not accept "schemaVersion": 1 when parsing int…
Browse files Browse the repository at this point in the history
…o a `LabwareDefinition2` (#17567)
  • Loading branch information
SyntaxColoring authored Feb 22, 2025
1 parent 992a6b9 commit 7c0a37c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,7 @@ class InnerWellGeometry(BaseModel):


class LabwareDefinition2(BaseModel):
# todo(mm, 2025-02-18): Is it correct to accept schemaVersion==1 here?
schemaVersion: Literal[1, 2]
schemaVersion: Literal[2]
version: Annotated[int, Field(ge=1)]
namespace: Annotated[str, Field(pattern=SAFE_STRING_REGEX)]
metadata: Metadata
Expand Down

0 comments on commit 7c0a37c

Please sign in to comment.