Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions format #2

Open
irivas opened this issue Mar 21, 2019 · 0 comments
Open

Exceptions format #2

irivas opened this issue Mar 21, 2019 · 0 comments
Labels
improvement This would be great to have
Projects

Comments

@irivas
Copy link
Owner

irivas commented Mar 21, 2019

Actual response:

{
    "message": "Validation failed: Abbr can't be blank"
}

Expected response:

{
  "errors": [
    {
      "field": "header_name",
      "code": "exception.missing_header_name",
      "message": "header is missing: header_name",
      "exception": "Exception.Name"
    }
  ]
}
@irivas irivas added the improvement This would be great to have label Mar 21, 2019
@irivas irivas added this to To do in Challenge Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This would be great to have
Projects
Challenge
  
To do
Development

No branches or pull requests

1 participant