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

Ember Data Serializer should serialize API errors according to specification. #51

Open
bummzack opened this issue Jul 14, 2015 · 3 comments

Comments

@bummzack
Copy link
Contributor

The current API error payload doesn't match the ember json-api specification. Here's how it currently looks:

{message: "Token expired.", code: 3}

Here's how it should look:

{ errors: [{ title: "Token expired.", code: "3", status: 403 }] }
@colymba
Copy link
Owner

colymba commented Jul 15, 2015

True. But the whole EmberDataSerializer is now far rom the json api spec. I have planned to deprecate the EmberDataSerializer in favour of a new JSONApiSerializer and try to follow the spec since it now is on v1...

@peavers
Copy link

peavers commented Feb 8, 2017

Any update on the movement towards a new JSONApiSerializer? Would be really helpful at this stage and as you mention the spec has stabilized a fair amount.

@colymba
Copy link
Owner

colymba commented Feb 8, 2017

@peavers yes, this needs addressing and I must say I haven't had much time... sorry...
I guess now is a good time to revive this and maybe have it in the next release that would be SS4 compatible....

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

No branches or pull requests

3 participants