diff --git a/ctk/features/call.feature b/ctk/features/call.feature index cf3c591c..700c6de4 100644 --- a/ctk/features/call.feature +++ b/ctk/features/call.feature @@ -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 @@ -108,7 +108,7 @@ Feature: Call Task parameters: status: ${ .status } output: - from: . | length + as: . | length """ And given the workflow input is: """yaml diff --git a/dsl-reference.md b/dsl-reference.md index 5ed78d47..a8b37b35 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -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