ValidateException has errors() method, it will show which field has validete error. And dingo/api‘s :error does not got this errors, that will make user unreachable the true validate error.
so I add this pr for show errors for ValidationException. and the response will like that:
@thilanga @jianfengye This PR cause error under laravel 5.2, 5.3, 5.4, because the ValidationException->errors method doesn't exists before laravel 5.5
I got the same issue like https://github.com/dingo/api/issues/1496
And I check Laravel source Code
ValidateException has errors() method, it will show which field has validete error. And dingo/api‘s :error does not got this errors, that will make user unreachable the true validate error.
so I add this pr for show errors for ValidationException. and the response will like that: