Updates based on TDC Call
MODIFY
versions/3.0.md
versions/3.0.md
@@ -1954,7 +1954,7 @@ paths:
description: the user's address
```
-When a runtime expression evaluates to null, no parameter value is passed to the target operation.
+When a runtime expression fails to evaluate, no parameter value is passed to the target operation.
Values from the response body can be used to drive a linked operation.
@@ -1981,7 +1981,7 @@ value), references MAY also be made through a relative `operationRef`:
links:
UserRepositories:
# returns array of '#/components/schemas/repository'
- operationRef: '#paths~12.0~1repositories~1/{username}'
+ operationRef: '#/paths~12.0~1repositories~1/{username}/get'
parameters:
username: $response.body#/username
```
@@ -1992,7 +1992,7 @@ or an absolute `operationRef`:
links:
UserRepositories:
# returns array of '#/components/schemas/repository'
- operationRef: 'https://na2.gigantic-server.com/#/paths/~12.0~1repositories~1{username}'
+ operationRef: 'https://na2.gigantic-server.com/#/paths/~12.0~1repositories~1{username}/get'
parameters:
username: $response.body#/username
```
@@ -2009,7 +2009,7 @@ This mechanism is used by [Link Objects](#linkObject) and [Callback Objects](#ca
The runtime expression is defined by the following [ABNF](https://tools.ietf.org/html/rfc5234) syntax
```
- expression = ( "$url" | "$method" | "$request." [ source ] | "$response." [ source ])
+ expression = ( "$url" | "$method" | "$statusCode" | "$request." source | "$response." source )
source = ( header-reference | query-reference | path-reference | body-reference )
header-reference = "header." token
query-reference = "query." name
@@ -2028,7 +2028,7 @@ The table below provides examples of runtime expressions and examples of their u
##### <a name="runtimeExpressionExamples"></a>Examples
Source Location | example expression | notes
----|:---|:---|:---
+---|:---|:---|
HTTP Method | `$method` | The allowable values for the `$method` will be those for the HTTP operation
Requested media type | `$request.header.accept` |
Request parameter | `$request.path.id` | Request parameters MUST be declared in the `parameters` section for the parent operation or they cannot be evaluated. This includes request headers.

Updates based on TDC Call