Skip to content

Commit

Permalink
Apply suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed May 23, 2024
1 parent 70fd2f7 commit 959ca54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,17 @@
]


class Input(Model):
class WorkflowDictExportStepInput(Model):
name: str = Field(..., title="Name", description="The name of the input.")
description: str = Field(..., title="Description", description="The annotation or description of the input.")


# TODO - Not in use
class Output(Model):
name: str = Field(..., title="Name", description="The name of the output.")
type: str = Field(..., title="Type", description="The extension or type of output.")


class InputConnection(Model):
id: int = Field(..., title="ID", description="The identifier of the input.")
id: int = Field(..., title="ID", description="The order index of the step.")
output_name: str = Field(
...,
title="Output Name",
description="The name assigned to the output.",
description="The output name of the input step that serves as the source for this connection.",
)
input_subworkflow_step_id: Optional[int] = Field(
None,
Expand Down Expand Up @@ -132,7 +126,6 @@ class WorkflowInput(Model):
value: Optional[Any] = Field(
...,
title="Value",
description="TODO",
)
uuid: Optional[UUID4] = Field(
...,
Expand All @@ -150,7 +143,7 @@ class WorkflowOutput(Model):
output_name: str = Field(
...,
title="Output Name",
description="The name assigned to the output.",
description="The name of the step output.",
)
uuid: Optional[UUID4] = Field(
None,
Expand Down Expand Up @@ -812,7 +805,7 @@ class WorkflowDictExportStep(WorkflowDictStepsExtendedBase):
title="Sub Workflow",
description="Full information about the subworkflow associated with this step.",
)
inputs: Optional[List[Input]] = Field(
inputs: Optional[List[WorkflowDictExportStepInput]] = Field(
None,
title="Inputs",
description="The inputs of the step.",
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/api/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def __get_stored_workflow(self, trans, workflow_id, **kwd):
Optional[str],
Query(
title="Style of export",
description="The default is 'export', which is the meant to be used with workflow import endpoints. Other formats such as 'instance', 'editor', 'run' are more tied to the GUI and should not be considered stable APIs. The default format for 'export' is specified by the admin with the `default_workflow_export_format` config option. Style can be specified as either 'ga' or 'format2' directly to be explicit about which format to download.",
description="The default is 'export', which is meant to be used with workflow import endpoints. Other formats such as 'instance', 'editor', 'run' are tied to the GUI and should not be considered stable APIs. The default format for 'export' is specified by the admin with the `default_workflow_export_format` config option. Style can be specified as either 'ga' or 'format2' directly to be explicit about which format to download.",
),
]

Expand Down

0 comments on commit 959ca54

Please sign in to comment.