Skip to content

Commit

Permalink
Accept empty dict for field post_job_Actions in WorkflowDictStepsBase
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Apr 1, 2024
1 parent ace6add commit acca5eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,20 @@ class SetWorkflowMenuSummary(Model):
)


class EmptyDict(Model):
...

class Config:
extra = "forbid"


class WorkflowDictStepsBase(Model):
when: Optional[str] = Field(
None,
title="When",
description="The when expression for the step.",
)
post_job_actions: Optional[Union[PostJobAction, List[PostJobAction]]] = Field(
post_job_actions: Optional[Union[PostJobAction, List[Union[PostJobAction, EmptyDict]], EmptyDict]] = Field(
None,
title="Post Job Actions",
description="Set of actions that will be run when the job finishes.",
Expand Down

0 comments on commit acca5eb

Please sign in to comment.