Skip to content

Commit 40742b2

Browse files
chore(spec): fix example used within spec (#288)
* chore(spec): improve runtime expression examples and fix typo
1 parent 5336a14 commit 40742b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

versions/1.0.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ workflows:
176176
# outputs from this step
177177
availablePets: $response.body
178178
outputs:
179-
available: $steps.getPetStep.availablePets
179+
available: $steps.getPetStep.outputs.availablePets
180180
```
181181
182182
#### Info Object
@@ -856,8 +856,8 @@ Request URL | `$url` |
856856
Response value | `$response.body#/status` | In operations which return payloads, references may be made to portions of the response body or the entire body.
857857
Response header | `$response.header.Server` | Single header values only are available
858858
workflow input | `$inputs.username` or `$workflows.foo.inputs.username` | Single input values only are available
859-
Step output value | `$steps.someStep.pets` | In situations where the output named property return payloads, references may be made to portions of the response body or the entire body.
860-
Workflow output value | `$outputs.bar` or `$workflows.foo.outputs.bar` | Single input values only are available
859+
Step output value | `$steps.someStepId.outputs.pets` | In situations where the output named property return payloads, references may be made to portions of the response body (e.g., `$steps.someStepId.outputs.pets#/0/id`) or the entire body.
860+
Workflow output value | `$outputs.bar` or `$workflows.foo.outputs.bar` | In situations where the output named property return payloads, references may be made to portions of the response body (e.g., `$workflows.foo.outputs.mappedResponse#/name`) or the entire body.
861861
Components parameter | `$components.parameters.foo` | Accesses a foo parameter defined within the Components Object.
862862

863863
Runtime expressions preserve the type of the referenced value.

0 commit comments

Comments
 (0)