From 387a71e68119e54cd581f377af2b674805eadd43 Mon Sep 17 00:00:00 2001 From: Arish Sultan Date: Fri, 16 Apr 2021 06:51:41 +0500 Subject: [PATCH 1/2] Fixes Inconsistent JSON spacing the whole document uses 2-space indentation but at some places, 4-space indentation is used which is not consistent with the others. --- versions/3.1.1.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/versions/3.1.1.md b/versions/3.1.1.md index 3c0c0a8af1..117c499c1c 100644 --- a/versions/3.1.1.md +++ b/versions/3.1.1.md @@ -2239,8 +2239,8 @@ This object MAY be extended with [Specification Extensions](#specificationExtens ```json { - "name": "pet", - "description": "Pets operations" + "name": "pet", + "description": "Pets operations" } ``` @@ -2273,7 +2273,7 @@ Note that this restriction on additional properties is a difference between Refe ```json { - "$ref": "#/components/schemas/Pet" + "$ref": "#/components/schemas/Pet" } ``` @@ -2859,9 +2859,9 @@ Basic string property: ```json { - "animals": { - "type": "string" - } + "animals": { + "type": "string" + } } ``` @@ -2878,12 +2878,12 @@ Basic string array property ([`wrapped`](#xmlWrapped) is `false` by default): ```json { - "animals": { - "type": "array", - "items": { - "type": "string" - } + "animals": { + "type": "array", + "items": { + "type": "string" } + } } ``` From 3ea385b9298600896086c37730271e370f181970 Mon Sep 17 00:00:00 2001 From: Arish Sultan Date: Wed, 5 May 2021 20:32:46 +0500 Subject: [PATCH 2/2] Fixed 3-spaced indent in Format section's example --- versions/3.1.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/3.1.1.md b/versions/3.1.1.md index 117c499c1c..6854eb717d 100644 --- a/versions/3.1.1.md +++ b/versions/3.1.1.md @@ -117,7 +117,7 @@ For example, if a field has an array value, the JSON array representation will b ```json { - "field": [ 1, 2, 3 ] + "field": [1, 2, 3] } ``` All field names in the specification are **case sensitive**.