You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/oas.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ Path templating refers to the usage of template expressions, delimited by curly
43
43
Each template expression in the path MUST correspond to a path parameter that is included in the [Path Item](#path-item-object) itself and/or in each of the Path Item's [Operations](#operation-object). An exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.
44
44
45
45
The value for these path parameters MUST NOT contain any unescaped "generic syntax" characters described by [RFC3986](https://tools.ietf.org/html/rfc3986#section-3): forward slashes (`/`), question marks (`?`), or hashes (`#`).
46
+
This means that when matching templates to request URLs, no values that include a forward slash are matched.
47
+
For example, the template `/foo/{bar}` cannot match the URI path "/foo/alpha/beta" because the value of the template variable "bar" would have to be "alpha/beta".
46
48
See [URL Percent-Encoding](#url-percent-encoding) for additional guidance on escaping characters.
47
49
48
50
### Media Types
@@ -1236,7 +1238,7 @@ The rules in this section apply to both the Parameter and [Header](#header-objec
1236
1238
1237
1239
When showing serialized examples using the `example` field or [Example Objects](#example-object), in most cases the value to show is just the value, with all relevant percent-encoding or other encoding/escaping applied, and also including any delimiters produced by the `style` and `explode` configuration.
1238
1240
1239
-
In cases where the name is an inherent part of constructing the serialization, such as the `name=value` pairs produced by `style: "form"` or the combination of `style: "simple", explode: true`, the name and any delimiter between the name and value MUST be included.
1241
+
In cases where the parameter name is an inherent part of constructing the serialization, such as the `name=value` pairs produced by the combination of `style: "form", explode: false`, the name and any delimiter between the name and value MUST be included.
1240
1242
1241
1243
The `matrix` and `label` styles produce a leading delimiter which is always a valid part of the serialization and MUST be included.
1242
1244
The RFC6570 operators corresponding to `style: "form"` produce a leading delimiter of either `?` or `&` depending on the exact syntax used.
@@ -1253,12 +1255,13 @@ The following section illustrates these rules.
1253
1255
Assume a parameter named `color` has one of the following values:
1254
1256
1255
1257
```js
1258
+
undefined -> null
1256
1259
string -> "blue"
1257
1260
array -> ["blue", "black", "brown"]
1258
1261
object -> { "R": 100, "G": 200, "B": 150 }
1259
1262
```
1260
1263
1261
-
The following table shows serialized examples, as would be shown with the `example` or `examples` keywords, of the different serializations for each value.
1264
+
The following table shows serialized examples, as would be shown with the `example` or `examples` keywords, of the different serializations for the value of each supported type.
1262
1265
1263
1266
* The value _empty_ denotes the empty string, and is unrelated to the `allowEmptyValue` field.
1264
1267
* The behavior of combinations marked _n/a_ is undefined.
@@ -1268,10 +1271,10 @@ The following table shows serialized examples, as would be shown with the `examp
0 commit comments