Skip to content

Commit

Permalink
include more fields in the field validatior to transform the from str…
Browse files Browse the repository at this point in the history
… to dict
  • Loading branch information
heisner-tillman committed Feb 15, 2024
1 parent f92a0e9 commit 8fc8432
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fc8432

Please sign in to comment.