Uh oh!
There was an error while loading. Please reload this page.
Add error code under meta in serialization - #12
Conversation
Hey @richmolj since we needed #11 in our app I took the freedom to start a PR on one of the suggestions in the issue, but It's probably better to settle on something in the issue and then come back to this PR or something different and add the tests. (Tbh this PR is actually more convenient for our app since I can mention a pending PR on my Gemfile) This implementation is actually quite coupled to the way ActiveModel does things... but it's ok ? |
richmolj
commented
Nov 7, 2017
Hey @Startouf thanks for this issue and PR - well described and I agree with your solution. Could we add a test for a PORO including |
richmolj
commented
Nov 8, 2017
@Startouf as luck would have it this same use case just came up for me. I'll be refactoring the code and tests tomorrow and will make sure to support this use case 👍 |
richmolj
commented
Nov 9, 2017
Startouf
commented
Nov 9, 2017
Hey I'm going to test that right away, sorry didn't get the notifications. |
Startouf
commented
Nov 10, 2017
Solved by #13 |
Serialize ActiveModel "error symbol"s under the
metakey in the jsonapi payload as suggested in #11