-
Notifications
You must be signed in to change notification settings - Fork 80
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
Non relevant validations errors #36
Comments
Investigating this issue. I doubt it caused by Dingo Exception Handler. |
It is indeed the Dingo Exception Handler I have edited the handle function in the Dingo/Api/Exception/Handler it acts as temporary solution `
` |
Wow, thanks @elbakly! I will make a patch for this. Should check for another exception. |
@elbakly This is not fixing the problem. The output is still the same. |
@MaeseppTarvo Here is the whole file, check the
|
@elbakly Yayy. That was it, I was missing the |
Is this still an issue? |
I've downloaded the package, and I'm trying to create an API with it. But when it comes to validations e.g. users registration, it throws this object
{ "message": "The given data failed to pass validation.", "status_code": 500 }
while the official lumen throws this object with relevant errors
{ "name": [ "The name field is required." ], "email": [ "The email field is required." ] }
And here is my validation code in
UsersController.php
atstore
method$validation = $this->validate($request, [ 'name' => 'required', 'email' => 'required' ]);
So, what is missing here to throw this general message?
The text was updated successfully, but these errors were encountered: