From 8fc843220d32a35e7edb8032b19d7c434d368f92 Mon Sep 17 00:00:00 2001 From: heisner-tillman Date: Thu, 15 Feb 2024 16:01:15 +0100 Subject: [PATCH] include more fields in the field validatior to transform the from str to dict --- lib/galaxy/schema/workflows.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/schema/workflows.py b/lib/galaxy/schema/workflows.py index 1aa13662d336..ae14c3a39096 100644 --- a/lib/galaxy/schema/workflows.py +++ b/lib/galaxy/schema/workflows.py @@ -97,19 +97,19 @@ class InvokeWorkflowPayload(GetTargetHistoryPayload): allow_tool_state_corrections: Optional[bool] = False use_cached_job: Optional[bool] = False step_parameters: Optional[Dict[str, Any]] = None + # input_step_parameters: Dict[str, InvocationInputParameter] = Field( # default=..., title="Input step parameters", description="Input step parameters of the workflow invocation." # ) - parameters: Optional[Dict[str, Any]] = None - inputs: Optional[Dict[str, Any]] = None - - @field_validator("ds_map", mode="before", check_fields=False) + @field_validator("ds_map", "parameters", "inputs", mode="before", check_fields=False) @classmethod def inputs_string_to_json(cls, v): if isinstance(v, str): return json.loads(v) return v + parameters: Optional[Dict[str, Any]] = None + inputs: Optional[Dict[str, Any]] = None ds_map: Optional[Dict[str, Dict[str, Any]]] = None no_add_to_history: Optional[bool] = False legacy: Optional[bool] = False