Sylvain Bellino
Sylvain Bellino

The value is still undefined.
I'm trying multiple thing with chained then, but it does not works apparently
Ok so the answer was this : ``` .catch((response) => response.json() ) .then((response) => { this.set('errorMessage',response.error) }); ``` Thanks for your help
Also if the parameter has been aliased : ``` attribute :reply do @object.content end ``` The source is empty. There should be a way to set alias for errors also
Ok so I found a way to monkeypatch my problem. I replaced this line : https://github.com/stas/jsonapi.rb/blob/edfb67662734bfc5453b227d042d7a642b72d58c/lib/jsonapi/active_model_error_serializer.rb#L45 with this : `attrs = (model_serializer.attributes_to_serialize || {}).keys.map{|k| k.to_s.underscore.to_sym}` It's ugly, but it's the...
Is it unusual to use key? Maybe I missed something as this bug does not seems to bother anyone?
I added a test to this file https://github.com/rails-api/active_model_serializers/blob/0-10-stable/test/action_controller/json_api/errors_test.rb here : https://github.com/bsylvain/active_model_serializers/blob/0-10-stable/test/action_controller/json_api/errors_test.rb I added two methods : test_active_model_with_an_error_in_a_key_attribute to make the actual test and render_resource_with_error_in_a_key to render a resource. To complete...
I am trying to deserialize, and I cannot manage to do anything. It really really need something