Skip to content

Commit e1b518b

Browse files
frankkilcomminsjeremyfiel
authored andcommitted
chore(spec): fix example used within spec (#288)
* chore(spec): improve runtime expression examples and fix typo
1 parent eeacbd1 commit e1b518b

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

versions/1.0.0.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -868,19 +868,19 @@ The runtime expression is defined by the following [ABNF](https://tools.ietf.org
868868

869869
#### Examples
870870

871-
| Source Location | example expression | notes |
872-
| ---- | :---- | :---- |
873-
| HTTP Method | `$method` | The allowable values for the `$method` will be those for the HTTP operation. |
874-
| Requested media type | `$request.header.accept` | |
875-
| Request parameter | `$request.path.id` | Request parameters MUST be declared in the `parameters` section of the parent operation or they cannot be evaluated. This includes request headers. |
876-
| Request body property | `$request.body#/user/uuid` | In operations which accept payloads, references may be made to portions of the `requestBody` or the entire body. |
877-
| Request URL | `$url` | |
878-
| Response value | `$response.body#/status` | In operations which return payloads, references may be made to portions of the response body or the entire body. |
879-
| Response header | `$response.header.Server` | Single header values only are available |
880-
| workflow input | `$inputs.username` or `$workflows.foo.inputs.username` | Single input values only are available |
881-
| 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. |
882-
| Workflow output value | `$outputs.bar` or `$workflows.foo.outputs.bar` | Single input values only are available |
883-
| Components parameter | `$components.parameters.foo` | Accesses a foo parameter defined within the Components Object. |
871+
Source Location | example expression | notes
872+
---|:---|:---|
873+
HTTP Method | `$method` | The allowable values for the `$method` will be those for the HTTP operation.
874+
Requested media type | `$request.header.accept` |
875+
Request parameter | `$request.path.id` | Request parameters MUST be declared in the `parameters` section of the parent operation or they cannot be evaluated. This includes request headers.
876+
Request body property | `$request.body#/user/uuid` | In operations which accept payloads, references may be made to portions of the `requestBody` or the entire body.
877+
Request URL | `$url` |
878+
Response value | `$response.body#/status` | In operations which return payloads, references may be made to portions of the response body or the entire body.
879+
Response header | `$response.header.Server` | Single header values only are available
880+
workflow input | `$inputs.username` or `$workflows.foo.inputs.username` | Single input values only are available
881+
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.
882+
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.
883+
Components parameter | `$components.parameters.foo` | Accesses a foo parameter defined within the Components Object.
884884

885885
Runtime expressions preserve the type of the referenced value.
886886
Expressions can be embedded into string values by surrounding the expression with `{}` curly braces.

0 commit comments

Comments
 (0)