incomplete answering returns 422
POST /api/v1/surveys
Request
Headers
Route
POST /api/v1/surveys
Body
{"data":{"question_1":"a"}}
cURL
curl "http://localhost:3000/api/v1/surveys" -d '{"data":{"question_1":"a"}}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: EF528cTSzoPsxz2cyYpjCQNzGpSHx-K7YA" \
-H "X-Api-Email: user-175@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
422 Unprocessable Entity
Body
{
"data": [
"The property '#/' did not contain a required property of 'billing_country' in schema 491887ff-799d-55fb-84ae-6ec32f28bd41"
],
"survey": [
"can't be blank",
"is not included in the list"
]
}