Skip to content

Commit

Permalink
chore(spec): fix example used within spec (#288)
Browse files Browse the repository at this point in the history
* chore(spec): improve runtime expression examples and fix typo
  • Loading branch information
frankkilcommins authored Dec 16, 2024
1 parent 5336a14 commit 40742b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions versions/1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ workflows:
# outputs from this step
availablePets: $response.body
outputs:
available: $steps.getPetStep.availablePets
available: $steps.getPetStep.outputs.availablePets
```
#### Info Object
Expand Down Expand Up @@ -856,8 +856,8 @@ Request URL | `$url` |
Response value | `$response.body#/status` | In operations which return payloads, references may be made to portions of the response body or the entire body.
Response header | `$response.header.Server` | Single header values only are available
workflow input | `$inputs.username` or `$workflows.foo.inputs.username` | Single input values only are available
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.
Workflow output value | `$outputs.bar` or `$workflows.foo.outputs.bar` | Single input values only are available
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.
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.
Components parameter | `$components.parameters.foo` | Accesses a foo parameter defined within the Components Object.

Runtime expressions preserve the type of the referenced value.
Expand Down

0 comments on commit 40742b2

Please sign in to comment.