-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Standardize Validation Formatting #29
Comments
👍
On January 23, 2018 at 4:06:53 PM, Jason Varga (notifications@github.com) wrote:
Laravel 5.5 introduced <laravel/framework#20173> a
more standardized way to format validation exception responses.
{
"message": "The given data was invalid.",
"errors": {
"field-1": [
"Error 1",
"Error 2"
],
"field-2": [
"Error 1",
"Error 2"
],
}
}
The docs say that you can override how they are formatted in a single
place, but we've been a little inconsistent anyway. We should just refactor
the bits to accept the "standard" responses.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACuw3XBjHwcAGoxksPIm49l8F6B-sbIks5tNknsgaJpZM4RqUNS>
.
|
Excuse me kind sir can you please use the 👍 reaction instead of commenting. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Laravel 5.5 introduced a more standardized way to format validation exception responses.
The docs say that you can override how they are formatted in a single place, but we've been a little inconsistent anyway. We should just refactor the bits to accept the "standard" responses.
The text was updated successfully, but these errors were encountered: