{"action":"created","issue":{"url":"https://api.github.com/repos/apotonick/roar/issues/171","labels_url":"https://api.github.com/repos/apotonick/roar/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/apotonick/roar/issues/171/comments","events_url":"https://api.github.com/repos/apotonick/roar/issues/171/events","html_url":"https://github.com/apotonick/roar/issues/171","id":118935816,"number":171,"title":"JSONAPI: Single-resource compound documents are non-conformant","user":{"login":"dvogel","id":45699,"avatar_url":"https://avatars.githubusercontent.com/u/45699?v=3","gravatar_id":"","url":"https://api.github.com/users/dvogel","html_url":"https://github.com/dvogel","followers_url":"https://api.github.com/users/dvogel/followers","following_url":"https://api.github.com/users/dvogel/following{/other_user}","gists_url":"https://api.github.com/users/dvogel/gists{/gist_id}","starred_url":"https://api.github.com/users/dvogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvogel/subscriptions","organizations_url":"https://api.github.com/users/dvogel/orgs","repos_url":"https://api.github.com/users/dvogel/repos","events_url":"https://api.github.com/users/dvogel/events{/privacy}","received_events_url":"https://api.github.com/users/dvogel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T22:38:07Z","updated_at":"2015-11-25T22:40:28Z","closed_at":null,"body":"Resource decorator classes (and probably modules, haven't tested though) render non-conformant documents when related resources are included. Specifically, the `included` attribute is supposed to be at the top level rather than embedded inside the `data` object. Example: [The document in this test](https://github.com/apotonick/roar/blob/master/test/jsonapi/render_test.rb#L40) does not conform to [the JSON Schema definition](http://jsonapi.org/faq/#is-there-a-json-schema-describing-json-api) provided by the JSONAPI project."},"comment":{"url":"https://api.github.com/repos/apotonick/roar/issues/comments/159747546","html_url":"https://github.com/apotonick/roar/issues/171#issuecomment-159747546","issue_url":"https://api.github.com/repos/apotonick/roar/issues/171","id":159747546,"user":{"login":"apotonick","id":10406,"avatar_url":"https://avatars.githubusercontent.com/u/10406?v=3","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T22:40:28Z","updated_at":"2015-11-25T22:40:28Z","body":"Thanks! Is that only the `included`?\r\n\r\nBTW, dropping modules soon in Representable. `JSONAPI` only works with decorator classes. :wink: "}}