From 61545f244a5dcd0cf0b900e525e420a10b453532 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 8 Mar 2024 11:34:34 +0100 Subject: [PATCH] Make WorkflowInput label, value and uuid optional Fixes: ``` ValidationError 2 validation errors for StoredWorkflowDetailed inputs.0.uuid UUID input should be a string, bytes or UUID object [type=uuid_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.5/v/uuid_type inputs.1.uuid UUID input should be a string, bytes or UUID object [type=uuid_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.5/v/uuid_type ``` https://sentry.galaxyproject.org/share/issue/dd0fa7dec206415f82eefb876de1ca1e/ --- client/src/api/schema/schema.ts | 7 +++---- lib/galaxy/schema/schema.py | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index b8ec4fbdce1e..44f5457df6bf 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -12107,18 +12107,17 @@ export interface components { * Label * @description Label of the input. */ - label: string; + label: string | null; /** * UUID - * Format: uuid4 * @description Universal unique identifier of the input. */ - uuid: string; + uuid: string | null; /** * Value * @description TODO */ - value: string; + value: Record | null; }; /** WorkflowInvocationCollectionView */ WorkflowInvocationCollectionView: { diff --git a/lib/galaxy/schema/schema.py b/lib/galaxy/schema/schema.py index 9391c03efd33..1b8c0bd37a41 100644 --- a/lib/galaxy/schema/schema.py +++ b/lib/galaxy/schema/schema.py @@ -2154,17 +2154,17 @@ class StoredWorkflowSummary(Model, WithModelClass): class WorkflowInput(Model): - label: str = Field( + label: Optional[str] = Field( ..., title="Label", description="Label of the input.", ) - value: str = Field( + value: Optional[Any] = Field( ..., title="Value", description="TODO", ) - uuid: UUID4 = Field( + uuid: Optional[UUID4] = Field( ..., title="UUID", description="Universal unique identifier of the input.",