From b30de593a655c777263e54580343b9a50c0d7d10 Mon Sep 17 00:00:00 2001 From: Yuri Zhao Date: Thu, 25 Jul 2024 14:02:55 -0400 Subject: [PATCH 1/2] Fix output examples from dsl reference and ctk feature Signed-off-by: Yuri Zhao --- ctk/features/call.feature | 4 ++-- dsl-reference.md | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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..51288840 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -1515,9 +1515,7 @@ schema: petId: type: string required: [ petId ] -from: - petId: '${ .pet.id }' -to: '.petList += [ . ]' +as: '.petList += [ . ]' ``` ### Export From ef679e11f39901babf19d83c82bf58c08519bdcc Mon Sep 17 00:00:00 2001 From: Yuri Zhao Date: Mon, 29 Jul 2024 12:09:15 -0400 Subject: [PATCH 2/2] Updated Output example Signed-off-by: Yuri Zhao --- dsl-reference.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/dsl-reference.md b/dsl-reference.md index 51288840..a8b37b35 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -1507,15 +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 ] -as: '.petList += [ . ]' +output: + schema: + format: json + document: + type: object + properties: + petId: + type: string + required: [ petId ] + as: + petId: '${ .pet.id }' +export: + as: + '.petList += [ . ]' ``` ### Export