Skip to content

Fixes the schema to allow input.from, output.as and export.as to be either a runtime expression string or object #907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,7 @@ When set, runtimes must validate output data against the defined schema, unless
| Property | Type | Required | Description |
|----------|:----:|:--------:|-------------|
| schema | [`schema`](#schema) | `no` | The [`schema`](#schema) used to describe and validate output data.<br>*Even though the schema is not required, it is strongly encouraged to document it, whenever feasible.* |
| from | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |
| to | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to update the context, using both output and context data. |
| as | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |

#### Examples

Expand Down
12 changes: 9 additions & 3 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,9 @@ $defs:
$ref: '#/$defs/schema'
description: The schema used to describe and validate the input of the workflow or task.
from:
type: string
oneOf:
- type: string
- type: object
description: A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.
description: Configures the input of a workflow or task.
output:
Expand All @@ -909,7 +911,9 @@ $defs:
$ref: '#/$defs/schema'
description: The schema used to describe and validate the output of the workflow or task.
as:
type: string
oneOf:
- type: string
- type: object
description: A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.
description: Configures the output of a workflow or task.
export:
Expand All @@ -919,7 +923,9 @@ $defs:
$ref: '#/$defs/schema'
description: The schema used to describe and validate the workflow context.
as:
type: string
oneOf:
- type: string
- type: object
description: A runtime expression, if any, used to export the output data to the context.
description: Set the content of the context.
retryPolicy:
Expand Down
Loading