-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ActiveModel adapter 422 error handling #1977
Comments
Yes, this seems like a bug. I'll try and make a PR, but it might need to be a part of a slightly bigger refactor. |
I have been looking at how errors are handled in Ember Data as I want to ensure the following:
This is really a common problem for all serializers, not just ActiveModel as the store currently by-passes the serializer when there is an A possible solution would be to introduce @igorT Has there been any progress on this? The reason I ask is I need to solve this for a project pretty urgently so if there is some existing work I can base my changes on I will look at that, or if you can recommend a better way forward I will consider that too. I will also look at what other enhancements are needed so that embedded record handling can extract errors pertaining to those record instances. |
@ahacking I haven't worked on this personally, your PR looks great. |
@igorT Is it possible to consider the
attrs
hash here?Right now the errors from the server doesn't match custom mappings and are worthless.
The text was updated successfully, but these errors were encountered: