From 69317c9f5753b01c6c30dfdf6f87ee8caa7a76b6 Mon Sep 17 00:00:00 2001 From: heisner-tillman Date: Wed, 29 May 2024 12:22:35 +0200 Subject: [PATCH] Fix typing of id fields in payload of create opperation --- lib/galaxy/schema/workflows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/schema/workflows.py b/lib/galaxy/schema/workflows.py index e3844f2bc7f6..77a33615818b 100644 --- a/lib/galaxy/schema/workflows.py +++ b/lib/galaxy/schema/workflows.py @@ -1075,12 +1075,12 @@ class WorkflowCreatePayload(Model): title="Job IDs", description="If from_history_id is set, this is an optional list of job IDs to include when extracting a workflow from history.", ) - dataset_ids: Optional[Union[str, int]] = Field( + dataset_ids: Optional[List[Union[str, int]]] = Field( None, title="Dataset IDs", description="If from_history_id is set, this is an optional list of HDA 'hid's corresponding to workflow inputs when extracting a workflow from history.", ) - dataset_collection_ids: Optional[Union[str, int]] = Field( + dataset_collection_ids: Optional[List[Union[str, int]]] = Field( None, title="Dataset Collection IDs", description="If from_history_id is set, this is an optional list of HDCA 'hid's corresponding to workflow inputs when extracting a workflow from history.",