Skip to content

Fix output examples from dsl reference and ctk feature #936

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 3 commits into from
Aug 1, 2024
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
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
Loading