Skip to content

Commit a70e430

Browse files
Merge branch 'main' into runtime-expressions
2 parents ec487e2 + 4622e24 commit a70e430

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

ctk/features/call.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Feature: Call Task
2222
endpoint:
2323
uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
2424
output:
25-
from: .[0]
25+
as: .[0]
2626
"""
2727
And given the workflow input is:
2828
"""yaml
@@ -108,7 +108,7 @@ Feature: Call Task
108108
parameters:
109109
status: ${ .status }
110110
output:
111-
from: . | length
111+
as: . | length
112112
"""
113113
And given the workflow input is:
114114
"""yaml

dsl-reference.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,17 +1507,20 @@ When set, runtimes must validate output data against the defined schema, unless
15071507
#### Examples
15081508

15091509
```yaml
1510-
schema:
1511-
format: json
1512-
document:
1513-
type: object
1514-
properties:
1515-
petId:
1516-
type: string
1517-
required: [ petId ]
1518-
from:
1519-
petId: '${ .pet.id }'
1520-
to: '.petList += [ . ]'
1510+
output:
1511+
schema:
1512+
format: json
1513+
document:
1514+
type: object
1515+
properties:
1516+
petId:
1517+
type: string
1518+
required: [ petId ]
1519+
as:
1520+
petId: '${ .pet.id }'
1521+
export:
1522+
as:
1523+
'.petList += [ . ]'
15211524
```
15221525

15231526
### Export

0 commit comments

Comments
 (0)