Skip to content

Instantly share code, notes, and snippets.

@rozanovz
Created March 4, 2016 09:35
Show Gist options
  • Select an option

  • Save rozanovz/c218203fddaa8f57791d to your computer and use it in GitHub Desktop.

Select an option

Save rozanovz/c218203fddaa8f57791d to your computer and use it in GitHub Desktop.
response:{
"errors": [
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The corporate name field is required.",
"source": {
"pointer": "/data/attributes/corporate_name"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The contact name field is required.",
"source": {
"pointer": "/data/attributes/contact_name"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The vat number field is required.",
"source": {
"pointer": "/data/attributes/vat_number"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The coc number field is required.",
"source": {
"pointer": "/data/attributes/coc_number"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The country field is required.",
"source": {
"pointer": "/data/attributes/country"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The city field is required.",
"source": {
"pointer": "/data/attributes/city"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The area code field is required.",
"source": {
"pointer": "/data/attributes/area_code"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The building field is required.",
"source": {
"pointer": "/data/attributes/building"
}
},
{
"status": "422",
"code": "invalid-attribute",
"title": "Invalid Attribute",
"detail": "The street field is required.",
"source": {
"pointer": "/data/attributes/street"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment