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
@@ -1387,30 +1387,29 @@ This object MAY be extended with [Specification Extensions](#specificationExtens
1387
1387
{
1388
1388
"application/json": {
1389
1389
"schema": {
1390
-
"$ref": "#/components/schemas/Pet"
1390
+
"$ref": "#/components/schemas/Pet"
1391
1391
},
1392
1392
"examples": {
1393
1393
"cat" : {
1394
1394
"summary": "An example of a cat",
1395
-
"value":
1396
-
{
1397
-
"name": "Fluffy",
1398
-
"petType": "Cat",
1399
-
"color": "White",
1400
-
"gender": "male",
1401
-
"breed": "Persian"
1402
-
}
1395
+
"value": {
1396
+
"name": "Fluffy",
1397
+
"petType": "Cat",
1398
+
"color": "White",
1399
+
"gender": "male",
1400
+
"breed": "Persian"
1401
+
}
1403
1402
},
1404
1403
"dog": {
1405
1404
"summary": "An example of a dog with a cat's name",
1406
-
"value" : {
1405
+
"value" : {
1407
1406
"name": "Puma",
1408
1407
"petType": "Dog",
1409
1408
"color": "Black",
1410
1409
"gender": "Female",
1411
1410
"breed": "Mixed"
1412
1411
},
1413
-
"frog": {
1412
+
"frog": {
1414
1413
"$ref": "#/components/examples/frog-example"
1415
1414
}
1416
1415
}
@@ -1420,7 +1419,7 @@ This object MAY be extended with [Specification Extensions](#specificationExtens
1420
1419
```
1421
1420
1422
1421
```yaml
1423
-
application/json:
1422
+
application/json:
1424
1423
schema:
1425
1424
$ref: "#/components/schemas/Pet"
1426
1425
examples:
@@ -1459,24 +1458,24 @@ Content transferred in binary (octet-stream) MAY omit `schema`:
1459
1458
```yaml
1460
1459
# a PNG image as a binary file:
1461
1460
content:
1462
-
image/png: {}
1461
+
image/png: {}
1463
1462
```
1464
1463
1465
1464
```yaml
1466
1465
# an arbitrary binary file:
1467
1466
content:
1468
-
application/octet-stream: {}
1467
+
application/octet-stream: {}
1469
1468
```
1470
1469
1471
1470
Binary content transferred with base64 encoding:
1472
1471
1473
1472
```yaml
1474
1473
content:
1475
-
image/png:
1476
-
schema:
1477
-
type: string
1478
-
contentMediaType: image/png
1479
-
contentEncoding: base64
1474
+
image/png:
1475
+
schema:
1476
+
type: string
1477
+
contentMediaType: image/png
1478
+
contentEncoding: base64
1480
1479
```
1481
1480
1482
1481
Note that the `Content-Type` remains `image/png`, describing the semantics of the payload. The JSON Schema `type` and `contentEncoding` fields explain that the payload is transferred as text. The JSON Schema `contentMediaType` is technically redundant, but can be used by JSON Schema tools that may not be aware of the OpenAPI context.
@@ -1705,7 +1704,7 @@ A 200 response for a successful operation and a default response for others (imp
1705
1704
```yaml
1706
1705
'200':
1707
1706
description: a pet to be returned
1708
-
content:
1707
+
content:
1709
1708
application/json:
1710
1709
schema:
1711
1710
$ref: '#/components/schemas/Pet'
@@ -1753,9 +1752,9 @@ Response of an array of a complex type:
0 commit comments