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

Improve validation error messages #14

Open
bolshakov opened this issue Jun 15, 2016 · 0 comments
Open

Improve validation error messages #14

bolshakov opened this issue Jun 15, 2016 · 0 comments

Comments

@bolshakov
Copy link
Contributor

Imagin you have a fetcher with the following filter:

filter genres: :in, validates: { presence: true }

If you forget to pass this filter when fetching resource, the following error will be raised:

Genres should not be empty

To provide more user friendly feedback, error should be slightly more specific. Something like:

Filter by "genres" should not be empty. You can pass it using the following syntax: "?filter[genres_in]={genres}"
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

1 participant