Further disambiguate Invalid JSON vs Invalid data schema

pull/10616/head
Jared Scheib 2018-03-29 16:53:13 -07:00
parent 2d456e3b70
commit 4879383587
1 changed files with 10 additions and 8 deletions

View File

@ -2322,7 +2322,7 @@
}, },
"400": { "400": {
"description": "description":
"Invalid JSON; or failed to perform operation in data store", "Invalid JSON unable to encode or decode; or failed to perform operation in data store",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2334,7 +2334,8 @@
} }
}, },
"422": { "422": {
"description": "Invalid data schema for organization", "description":
"Invalid data schema provided to server for organization",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2427,7 +2428,7 @@
}, },
"400": { "400": {
"description": "description":
"Invalid JSON; or failed to perform operation in data store", "Invalid JSON unable to encode or decode; or failed to perform operation in data store",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2439,7 +2440,8 @@
} }
}, },
"422": { "422": {
"description": "Invalid data schema for organization", "description":
"Invalid data schema provided to server for organization",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2560,7 +2562,7 @@
}, },
"400": { "400": {
"description": "description":
"Invalid JSON; or failed to perform operation in data store", "Invalid JSON unable to encode or decode; or failed to perform operation in data store",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2578,7 +2580,7 @@
} }
}, },
"422": { "422": {
"description": "Invalid data schema for user", "description": "Invalid data schema provided to server for user",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2672,7 +2674,7 @@
}, },
"400": { "400": {
"description": "description":
"Invalid JSON; failed to parse user id as valid; or failed to perform operation in data store", "Invalid JSON unable to encode or decode; failed to parse user id as valid; or failed to perform operation in data store",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }
@ -2696,7 +2698,7 @@
} }
}, },
"422": { "422": {
"description": "Invalid data schema for user", "description": "Invalid data schema provided to server for user",
"schema": { "schema": {
"$ref": "#/definitions/Error" "$ref": "#/definitions/Error"
} }