mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 06:15:18 +00:00
enforce collection id for login parameters (#1043)
This commit is contained in:
parent
ae86b45ed3
commit
b308c6b05d
3 changed files with 24 additions and 1 deletions
|
@ -99,3 +99,11 @@ class InvalidFileType(BaseWorkflowHTTPException):
|
|||
f"File URL {file_url} is not a valid {file_type} file. Error: {error}",
|
||||
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
|
||||
)
|
||||
|
||||
|
||||
class WorkflowParameterMissingRequiredValue(BaseWorkflowHTTPException):
|
||||
def __init__(self, workflow_parameter_type: str, workflow_parameter_key: str, required_value: str) -> None:
|
||||
super().__init__(
|
||||
f"Missing required value for workflow parameter. Workflow parameter type: {workflow_parameter_type}. workflow_parameter_key: {workflow_parameter_key}. Required value: {required_value}",
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue