File tree Expand file tree Collapse file tree 1 file changed +12
-29
lines changed
Expand file tree Collapse file tree 1 file changed +12
-29
lines changed Original file line number Diff line number Diff 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
226208Finally, run ` tox ` to ensure the changes work for every supported python version:
227209
228210```
211+ pip install tox # only if necessary
229212tox -v
230213```
231214
You can’t perform that action at this time.
0 commit comments