Skip to content

Commit 2389c8c

Browse files
committed
Improved request-response example
and one more nit
1 parent 892f7b7 commit 2389c8c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

versions/3.1.1.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -2100,17 +2100,21 @@ For example, given the following HTTP request:
21002100
POST /subscribe/myevent?queryUrl=https://clientdomain.com/stillrunning HTTP/1.1
21012101
Host: example.org
21022102
Content-Type: application/json
2103-
Content-Length: 187
2103+
Content-Length: 188
21042104
21052105
{
2106-
"failedUrl" : "https://clientdomain.com/failed",
2107-
"successUrls" : [
2106+
"failedUrl": "https://clientdomain.com/failed",
2107+
"successUrls": [
21082108
"https://clientdomain.com/fast",
21092109
"https://clientdomain.com/medium",
21102110
"https://clientdomain.com/slow"
21112111
]
21122112
}
2113+
```
2114+
2115+
resulting in:
21132116

2117+
```http
21142118
201 Created
21152119
Location: https://example.org/subscription/1
21162120
```
@@ -3149,7 +3153,7 @@ components:
31493153
$id: fully_generic_array
31503154
type: array
31513155
items:
3152-
$dynamicRef: "#generic-array"
3156+
$dynamicRef: '#generic-array'
31533157
$defs:
31543158
allowAll:
31553159
$dynamicAnchor: generic-array

0 commit comments

Comments
 (0)