{"action":"created","issue":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/30","repository_url":"https://api.github.com/repos/beauby/jsonapi-datastore","labels_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/30/comments","events_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/30/events","html_url":"https://github.com/beauby/jsonapi-datastore/pull/30","id":145382960,"number":30,"title":"Add payload error parsing","user":{"login":"buren","id":922411,"avatar_url":"https://avatars.githubusercontent.com/u/922411?v=3","gravatar_id":"","url":"https://api.github.com/users/buren","html_url":"https://github.com/buren","followers_url":"https://api.github.com/users/buren/followers","following_url":"https://api.github.com/users/buren/following{/other_user}","gists_url":"https://api.github.com/users/buren/gists{/gist_id}","starred_url":"https://api.github.com/users/buren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buren/subscriptions","organizations_url":"https://api.github.com/users/buren/orgs","repos_url":"https://api.github.com/users/buren/repos","events_url":"https://api.github.com/users/buren/events{/privacy}","received_events_url":"https://api.github.com/users/buren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-02T15:17:46Z","updated_at":"2016-10-21T01:35:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/30","html_url":"https://github.com/beauby/jsonapi-datastore/pull/30","diff_url":"https://github.com/beauby/jsonapi-datastore/pull/30.diff","patch_url":"https://github.com/beauby/jsonapi-datastore/pull/30.patch"},"body":"First of all thank you for this package :+1: :star: \r\n\r\nThis is by no means ready.. Just thought it could act as a starting point for discussing how errors could be handled. \r\n\r\nWith this approach every time a `POST` or `PATCH` response it synced the consumer must write something like this..\r\n\r\n```js\r\nvar article = store.sync(payload);\r\nif (article.errors) {\r\n  // error handling\r\n} else {\r\n  // handle successful response\r\n}\r\n```\r\n\r\n@beauby what do you think? Should errors be handled in some other way?"},"comment":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/comments/255271978","html_url":"https://github.com/beauby/jsonapi-datastore/pull/30#issuecomment-255271978","issue_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/30","id":255271978,"user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T01:35:03Z","updated_at":"2016-10-21T01:35:03Z","body":"Hi @buren – sorry for the super-long delay. I really like the idea, although the API would have to be a bit different as the spec does not, AFAIK, forbid a field to be named `errors`, which would create a name clash."}}
{"actor":{"display_login":"beauby"}}