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

Standardize Validation Formatting #29

Closed
jasonvarga opened this issue Jan 23, 2018 · 2 comments
Closed

Standardize Validation Formatting #29

jasonvarga opened this issue Jan 23, 2018 · 2 comments

Comments

@jasonvarga
Copy link
Member

Laravel 5.5 introduced 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.

@jackmcdade
Copy link
Member

jackmcdade commented Jan 23, 2018 via email

@jasonvarga
Copy link
Member Author

Excuse me kind sir can you please use the 👍 reaction instead of commenting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants