{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/14496","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/14496/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/14496/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/14496/events","html_url":"https://github.com/emberjs/ember.js/issues/14496","id":184219175,"number":14496,"title":"JSON-API AssertionError with JSONSerializer","user":{"login":"maha99tests","id":22167069,"avatar_url":"https://avatars.githubusercontent.com/u/22167069?v=3","gravatar_id":"","url":"https://api.github.com/users/maha99tests","html_url":"https://github.com/maha99tests","followers_url":"https://api.github.com/users/maha99tests/followers","following_url":"https://api.github.com/users/maha99tests/following{/other_user}","gists_url":"https://api.github.com/users/maha99tests/gists{/gist_id}","starred_url":"https://api.github.com/users/maha99tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maha99tests/subscriptions","organizations_url":"https://api.github.com/users/maha99tests/orgs","repos_url":"https://api.github.com/users/maha99tests/repos","events_url":"https://api.github.com/users/maha99tests/events{/privacy}","received_events_url":"https://api.github.com/users/maha99tests/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-20T12:44:10Z","updated_at":"2016-10-20T13:01:02Z","closed_at":null,"body":"I've switched my serializer by adding the application serializer file -> app/serializers/application.js\r\n\r\n    import DS from 'ember-data';\r\n\r\n    export default DS.JSONSerializer.extend({\r\n    });\r\n\r\nand I'm using the RESTAdapter, customized at app/adapters/application.js\r\n\r\n    export default DS.RESTAdapter.extend({\r\n       host: 'http://60.60.60.60:3000/'\r\n    });\r\n\r\nBut when my server fails with validation errors with a 422, I get an assertion error that the errors should be in the JSON API format\r\n\r\n    ember.debug.js:19157 Error: Assertion Failed: `AdapterError` expects json-api formatted errors array.\r\n    at new Error (native)\r\n    at Error.EmberError (http://60.60.60.60:4200/assets/vendor.js:29613:21)\r\n    at assert (http://60.60.60.60:4200/assets/vendor.js:17311:13)\r\n    at Object.assert (http://60.60.60.60:4200/assets/vendor.js:29425:34)\r\n    at assert (http://60.60.60.60:4200/assets/vendor.js:66105:37)\r\n    at ErrorClass (http://60.60.60.60:4200/assets/vendor.js:77100:41)\r\n    at Class.handleResponse (http://60.60.60.60:4200/assets/vendor.js:78331:16)\r\n    at ajaxError (http://60.60.60.60:4200/assets/vendor.js:78852:25)\r\n    at Class.hash.error (http://60.60.60.60:4200/assets/vendor.js:78426:23)\r\n    at fire (http://60.60.60.60:4200/assets/vendor.js:3617:31)"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/255098995","html_url":"https://github.com/emberjs/ember.js/issues/14496#issuecomment-255098995","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/14496","id":255098995,"user":{"login":"Serabe","id":36221,"avatar_url":"https://avatars.githubusercontent.com/u/36221?v=3","gravatar_id":"","url":"https://api.github.com/users/Serabe","html_url":"https://github.com/Serabe","followers_url":"https://api.github.com/users/Serabe/followers","following_url":"https://api.github.com/users/Serabe/following{/other_user}","gists_url":"https://api.github.com/users/Serabe/gists{/gist_id}","starred_url":"https://api.github.com/users/Serabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serabe/subscriptions","organizations_url":"https://api.github.com/users/Serabe/orgs","repos_url":"https://api.github.com/users/Serabe/repos","events_url":"https://api.github.com/users/Serabe/events{/privacy}","received_events_url":"https://api.github.com/users/Serabe/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T13:01:02Z","updated_at":"2016-10-20T13:01:02Z","body":"Wrong button. I'll close it after you have move it to the Ember Data repo. Thank you!"}}
{"actor":{"display_login":"Serabe"}}