diff --git a/lib/galaxy/schema/workflows.py b/lib/galaxy/schema/workflows.py index f679fd47818d..4e80dcb7c55e 100644 --- a/lib/galaxy/schema/workflows.py +++ b/lib/galaxy/schema/workflows.py @@ -11,6 +11,7 @@ Field, field_validator, ) +from typing_extensions import Annotated from galaxy.schema.schema import ( AnnotationField, @@ -194,19 +195,21 @@ class StoredWorkflowDetailed(StoredWorkflowSummary): ) steps: Dict[ int, - Union[ - InputDataStep, - InputDataCollectionStep, - InputParameterStep, - PauseStep, - ToolStep, - SubworkflowStep, + Annotated[ + Union[ + InputDataStep, + InputDataCollectionStep, + InputParameterStep, + PauseStep, + ToolStep, + SubworkflowStep, + ], + Field(discriminator="type"), ], ] = Field( {}, title="Steps", description="A dictionary with information about all the steps of the workflow.", - discriminator="type", ) importable: Optional[bool] = Field( ...,