{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/3527","labels_url":"https://api.github.com/repos/emberjs/data/issues/3527/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/3527/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/3527/events","html_url":"https://github.com/emberjs/data/issues/3527","id":94211506,"number":3527,"title":"When calling store.push on JSONApi payload the store can't find model","user":{"login":"kempchee","id":6841805,"avatar_url":"https://avatars.githubusercontent.com/u/6841805?v=3","gravatar_id":"","url":"https://api.github.com/users/kempchee","html_url":"https://github.com/kempchee","followers_url":"https://api.github.com/users/kempchee/followers","following_url":"https://api.github.com/users/kempchee/following{/other_user}","gists_url":"https://api.github.com/users/kempchee/gists{/gist_id}","starred_url":"https://api.github.com/users/kempchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kempchee/subscriptions","organizations_url":"https://api.github.com/users/kempchee/orgs","repos_url":"https://api.github.com/users/kempchee/repos","events_url":"https://api.github.com/users/kempchee/events{/privacy}","received_events_url":"https://api.github.com/users/kempchee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T04:30:07Z","updated_at":"2015-07-10T16:35:38Z","closed_at":"2015-07-10T16:35:04Z","body":"I have a user model defined in the file 'user.js' with name, admin, and email attributes defined in an Ember 1.13.3 and data 1.13.3 Ember-Cli project.  My server returns the following payload:\r\n    {\"data\":\r\n      {\"id\":\"1\",\"type\":\"users\",\r\n        \"attributes\":{\"email\":\"fotingkempchee@gmail.com\",\"admin\":true}\r\n       }\r\n     }\r\nHowever, when I call store.push(payload), ember gives me the following error:\r\nUncaught Error: No model was found for 'users'\r\n\r\nOf course when I switch the model file to 'users.js', the problem goes away.  My understanding of JSONApi is that the resource type should always be the pluralized form of the actual resource name so this is a bug.  Please let me know if I am incorrect."},"comment":{"url":"https://api.github.com/repos/emberjs/data/issues/comments/120453744","html_url":"https://github.com/emberjs/data/issues/3527#issuecomment-120453744","issue_url":"https://api.github.com/repos/emberjs/data/issues/3527","id":120453744,"user":{"login":"kempchee","id":6841805,"avatar_url":"https://avatars.githubusercontent.com/u/6841805?v=3","gravatar_id":"","url":"https://api.github.com/users/kempchee","html_url":"https://github.com/kempchee","followers_url":"https://api.github.com/users/kempchee/followers","following_url":"https://api.github.com/users/kempchee/following{/other_user}","gists_url":"https://api.github.com/users/kempchee/gists{/gist_id}","starred_url":"https://api.github.com/users/kempchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kempchee/subscriptions","organizations_url":"https://api.github.com/users/kempchee/orgs","repos_url":"https://api.github.com/users/kempchee/repos","events_url":"https://api.github.com/users/kempchee/events{/privacy}","received_events_url":"https://api.github.com/users/kempchee/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T16:35:38Z","updated_at":"2015-07-10T16:35:38Z","body":"Thanks it works just as you described except that with normalize you actually need to pass in payload.data."}}