Skip to content

Commit d0ae479

Browse files
committed
Ensure all yaml/json examples parse ok
1 parent eedf153 commit d0ae479

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

versions/3.0.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -474,28 +474,27 @@ my.org.User
474474
```json
475475
"components": {
476476
"schemas": {
477-
"Category": {
478-
"type": "object",
479-
"properties": {
480-
"id": {
481-
"type": "integer",
482-
"format": "int64"
483-
},
484-
"name": {
485-
"type": "string"
486-
}
477+
"Category": {
478+
"type": "object",
479+
"properties": {
480+
"id": {
481+
"type": "integer",
482+
"format": "int64"
483+
},
484+
"name": {
485+
"type": "string"
487486
}
488-
},
489-
"Tag": {
490-
"type": "object",
491-
"properties": {
492-
"id": {
493-
"type": "integer",
494-
"format": "int64"
495-
},
496-
"name": {
497-
"type": "string"
498-
}
487+
}
488+
},
489+
"Tag": {
490+
"type": "object",
491+
"properties": {
492+
"id": {
493+
"type": "integer",
494+
"format": "int64"
495+
},
496+
"name": {
497+
"type": "string"
499498
}
500499
}
501500
}
@@ -606,7 +605,7 @@ components:
606605
GeneralError:
607606
description: General Error
608607
content:
609-
application/json
608+
application/json:
610609
schema:
611610
$ref: '#/components/schemas/GeneralError'
612611
securitySchemes:
@@ -927,8 +926,8 @@ requestBody:
927926
status:
928927
description: Updated status of the pet
929928
type: string
930-
required:
931-
- status
929+
required:
930+
- status
932931
responses:
933932
'200':
934933
description: Pet updated.
@@ -1424,7 +1423,9 @@ In contrast with the 2.0 specification, `file` input/output content in OpenAPI i
14241423
schema:
14251424
type: string
14261425
format: base64
1426+
```
14271427

1428+
```yaml
14281429
# content transferred in binary (octet-stream):
14291430
schema:
14301431
type: string
@@ -2016,7 +2017,7 @@ paths:
20162017
schema:
20172018
type: object
20182019
properties:
2019-
uuid: the unique user id
2020+
uuid: # the unique user id
20202021
type: string
20212022
format: uuid
20222023
links:

0 commit comments

Comments
 (0)