Skip to content

Commit 8067144

Browse files
committed
Fixes the schema to allow input.from, output.as and export.as to be either a runtime expression string or object
Signed-off-by: Charles d'Avernas <[email protected]>
1 parent ffcf80b commit 8067144

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

dsl-reference.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,8 +1486,7 @@ When set, runtimes must validate output data against the defined schema, unless
14861486
| Property | Type | Required | Description |
14871487
|----------|:----:|:--------:|-------------|
14881488
| 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.* |
1489-
| from | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |
1490-
| to | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to update the context, using both output and context data. |
1489+
| as | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |
14911490

14921491
#### Examples
14931492

schema/workflow.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,9 @@ $defs:
884884
$ref: '#/$defs/schema'
885885
description: The schema used to describe and validate the input of the workflow or task.
886886
from:
887-
type: string
887+
oneOf:
888+
- type: string
889+
- type: object
888890
description: A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.
889891
description: Configures the input of a workflow or task.
890892
output:
@@ -894,7 +896,9 @@ $defs:
894896
$ref: '#/$defs/schema'
895897
description: The schema used to describe and validate the output of the workflow or task.
896898
as:
897-
type: string
899+
oneOf:
900+
- type: string
901+
- type: object
898902
description: A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.
899903
description: Configures the output of a workflow or task.
900904
export:
@@ -904,7 +908,9 @@ $defs:
904908
$ref: '#/$defs/schema'
905909
description: The schema used to describe and validate the workflow context.
906910
as:
907-
type: string
911+
oneOf:
912+
- type: string
913+
- type: object
908914
description: A runtime expression, if any, used to export the output data to the context.
909915
description: Set the content of the context.
910916
retryPolicy:

0 commit comments

Comments
 (0)