Skip to content

Commit 682860d

Browse files
authored
Fixes Inconsistent JSON spacing (#2543)
* 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. * Fixed 3-spaced indent in Format section's example
1 parent f306b75 commit 682860d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

versions/3.1.1.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ For example, if a field has an array value, the JSON array representation will b
117117

118118
```json
119119
{
120-
"field": [ 1, 2, 3 ]
120+
"field": [1, 2, 3]
121121
}
122122
```
123123
All field names in the specification are **case sensitive**.
@@ -2239,8 +2239,8 @@ This object MAY be extended with [Specification Extensions](#specificationExtens
22392239

22402240
```json
22412241
{
2242-
"name": "pet",
2243-
"description": "Pets operations"
2242+
"name": "pet",
2243+
"description": "Pets operations"
22442244
}
22452245
```
22462246

@@ -2273,7 +2273,7 @@ Note that this restriction on additional properties is a difference between Refe
22732273

22742274
```json
22752275
{
2276-
"$ref": "#/components/schemas/Pet"
2276+
"$ref": "#/components/schemas/Pet"
22772277
}
22782278
```
22792279

@@ -2859,9 +2859,9 @@ Basic string property:
28592859

28602860
```json
28612861
{
2862-
"animals": {
2863-
"type": "string"
2864-
}
2862+
"animals": {
2863+
"type": "string"
2864+
}
28652865
}
28662866
```
28672867

@@ -2878,12 +2878,12 @@ Basic string array property ([`wrapped`](#xmlWrapped) is `false` by default):
28782878

28792879
```json
28802880
{
2881-
"animals": {
2882-
"type": "array",
2883-
"items": {
2884-
"type": "string"
2885-
}
2881+
"animals": {
2882+
"type": "array",
2883+
"items": {
2884+
"type": "string"
28862885
}
2886+
}
28872887
}
28882888
```
28892889

0 commit comments

Comments
 (0)