Skip to content

Commit

Permalink
Merge branch 'main' into runtime-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardozanini authored Aug 1, 2024
2 parents ec487e2 + 4622e24 commit a70e430
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ctk/features/call.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: Call Task
endpoint:
uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
output:
from: .[0]
as: .[0]
"""
And given the workflow input is:
"""yaml
Expand Down Expand Up @@ -108,7 +108,7 @@ Feature: Call Task
parameters:
status: ${ .status }
output:
from: . | length
as: . | length
"""
And given the workflow input is:
"""yaml
Expand Down
25 changes: 14 additions & 11 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1507,17 +1507,20 @@ When set, runtimes must validate output data against the defined schema, unless
#### Examples

```yaml
schema:
format: json
document:
type: object
properties:
petId:
type: string
required: [ petId ]
from:
petId: '${ .pet.id }'
to: '.petList += [ . ]'
output:
schema:
format: json
document:
type: object
properties:
petId:
type: string
required: [ petId ]
as:
petId: '${ .pet.id }'
export:
as:
'.petList += [ . ]'
```

### Export
Expand Down

0 comments on commit a70e430

Please sign in to comment.