Skip to content

Commit 35bc3af

Browse files
committed
Fix examples format
1 parent 313a20b commit 35bc3af

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

README.md

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,14 @@ API error messages will include the following keys:
7070

7171
```json
7272
{
73-
"title": "Error message.",
74-
"detail": [
75-
"error",
76-
...
77-
],
78-
"invalid_params": [
79-
{
80-
"name": "field_name",
81-
"reason": [
82-
"error",
83-
...
84-
]
85-
},
86-
...
87-
]
73+
"title": "Error message.",
74+
"detail": ["error"],
75+
"invalid_params": [
76+
{
77+
"name": "field_name",
78+
"reason": ["error"]
79+
}
80+
]
8881
}
8982
```
9083

@@ -99,12 +92,8 @@ API error messages will include the following keys:
9992
"invalid_params": [
10093
{
10194
"name": "field_name",
102-
"reason": [
103-
"error"
104-
// ...
105-
]
95+
"reason": ["error"]
10696
}
107-
// ...
10897
]
10998
}
11099
```
@@ -114,10 +103,7 @@ API error messages will include the following keys:
114103
```json
115104
{
116105
"title": "Error message.",
117-
"detail": [
118-
"error"
119-
// ...
120-
],
106+
"detail": ["error"],
121107
"invalid_params": null
122108
}
123109
```
@@ -157,12 +143,8 @@ If `CAMELIZE` is set to `True`:
157143
"invalidParams": [
158144
{
159145
"name": "fieldName",
160-
"reason": [
161-
"error"
162-
// ...
163-
]
146+
"reason": ["error"]
164147
}
165-
// ...
166148
]
167149
}
168150
```
@@ -226,6 +208,7 @@ make test
226208
Finally, run `tox` to ensure the changes work for every supported python version:
227209

228210
```
211+
pip install tox # only if necessary
229212
tox -v
230213
```
231214

0 commit comments

Comments
 (0)