File tree 2 files changed +26
-17
lines changed
2 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 14
14
content :
15
15
application/json :
16
16
examples :
17
- - {
17
+ foo :
18
+ value : {
18
19
" versions " : [
19
20
{
20
21
" status " : " CURRENT" ,
@@ -46,10 +47,11 @@ paths:
46
47
content :
47
48
application/json :
48
49
examples :
49
- - |
50
- {
50
+ foo :
51
+ value : |
52
+ {
51
53
"versions": [
52
- {
54
+ {
53
55
"status": "CURRENT",
54
56
"updated": "2011-01-21T11:33:21Z",
55
57
"id": "v2.0",
72
74
]
73
75
}
74
76
]
75
- }
77
+ }
76
78
/v2 :
77
79
get :
78
80
operationId : getVersionDetailsv2
84
86
content :
85
87
application/json :
86
88
examples :
87
- - {
89
+ foo :
90
+ value : {
88
91
" version " : {
89
92
" status " : " CURRENT" ,
90
93
" updated " : " 2011-01-21T11:33:21Z" ,
@@ -128,7 +131,8 @@ paths:
128
131
content :
129
132
application/json :
130
133
examples :
131
- - {
134
+ foo :
135
+ value : {
132
136
" version " : {
133
137
" status " : " CURRENT" ,
134
138
" updated " : " 2011-01-21T11:33:21Z" ,
@@ -160,4 +164,4 @@ paths:
160
164
}
161
165
]
162
166
}
163
- }
167
+ }
Original file line number Diff line number Diff line change @@ -2205,21 +2205,25 @@ schemas:
2205
2205
example:
2206
2206
$ref: http://foo.bar#/examples/name-example
2207
2207
2208
- # in a request body, note the plural ` examples` as the Content-Type is set to `*`:
2208
+ # in a request body, note the plural ` examples`
2209
2209
requestBody :
2210
2210
content :
2211
2211
' application/json ' :
2212
2212
schema :
2213
2213
$ref : ' #/components/schemas/Address'
2214
- examples :
2215
- - {"foo": "bar"}
2216
- - {"bar": "baz"}
2214
+ examples :
2215
+ foo :
2216
+ value : {"foo": "bar"}
2217
+ bar :
2218
+ value : {"bar": "baz"}
2217
2219
' application/xml ' :
2218
- examples :
2219
- - $ref : ' http://foo.bar#/examples/address-example.xml'
2220
+ examples :
2221
+ xml :
2222
+ externalValue : ' http://foo.bar/examples/address-example.xml'
2220
2223
' text/plain ' :
2221
- examples :
2222
- - $ref : ' http://foo.bar#/examples/address-example.txt'
2224
+ examples :
2225
+ text :
2226
+ externalValue : ' http://foo.bar/examples/address-example.txt'
2223
2227
2224
2228
# in a parameter
2225
2229
parameters :
@@ -2230,7 +2234,8 @@ schemas:
2230
2234
format : ' zip-code'
2231
2235
example :
2232
2236
$ref : ' http://foo.bar#/examples/zip-example'
2233
- # in a response, note the plural `examples`:
2237
+
2238
+ # in a response, note the singular `example`:
2234
2239
responses :
2235
2240
' 200 ' :
2236
2241
description : your car appointment has been booked
You can’t perform that action at this time.
0 commit comments