From d0ae4794d2488a4dd5b6d793622379491d2b8110 Mon Sep 17 00:00:00 2001 From: Mike Ralphson Date: Fri, 21 Jul 2017 11:56:13 +0100 Subject: [PATCH] Ensure all yaml/json examples parse ok --- versions/3.0.md | 51 +++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/versions/3.0.md b/versions/3.0.md index 1ad353a2db..f2bdc3b1ad 100644 --- a/versions/3.0.md +++ b/versions/3.0.md @@ -474,28 +474,27 @@ my.org.User ```json "components": { "schemas": { - "Category": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } + "Category": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" } - }, - "Tag": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } + } + }, + "Tag": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" } } } @@ -606,7 +605,7 @@ components: GeneralError: description: General Error content: - application/json + application/json: schema: $ref: '#/components/schemas/GeneralError' securitySchemes: @@ -927,8 +926,8 @@ requestBody: status: description: Updated status of the pet type: string - required: - - status + required: + - status responses: '200': description: Pet updated. @@ -1424,7 +1423,9 @@ In contrast with the 2.0 specification, `file` input/output content in OpenAPI i schema: type: string format: base64 +``` +```yaml # content transferred in binary (octet-stream): schema: type: string @@ -2016,7 +2017,7 @@ paths: schema: type: object properties: - uuid: the unique user id + uuid: # the unique user id type: string format: uuid links: