-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shared-data): json protocol schema 8 (#13848)
Add JSON protocol schema 8, which is similar in semantic concept to json protocol schema 7 but - Requires user specification of the schema for the command List This allows json protocols to switch which commands they're interning without requiring further bumps to the protocol schema - Does the same thing for command annotations, liquids, and labware For the same reasons. This should be a big step forward in flexibility for our protocol schemas. Unfortunately, these new structures cannot be represented in jsonschema because the schema to which components adhere is specified by the value of another key in the document; jsonschema relations must be computable at schema parse/verification time. We could solve this by using json hyper schema but this seems a little much. Instead, there's a new js module for parsing schema v8 that we'll introduce to the rest of the stack over time. --------- Co-authored-by: Brian Cooper <[email protected]>
- Loading branch information
Showing
54 changed files
with
13,967 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
api/src/opentrons/protocol_reader/protocol_files_invalid_error.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# noqa: D100 | ||
from opentrons_shared_data.errors.exceptions import InvalidProtocolData | ||
|
||
|
||
class ProtocolFilesInvalidError(ValueError): | ||
class ProtocolFilesInvalidError(InvalidProtocolData): | ||
"""Raised when the input to a ProtocolReader is not a well-formed protocol.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.