{"action":"created","issue":{"url":"https://api.github.com/repos/ancientHacker/susen.go/issues/25","labels_url":"https://api.github.com/repos/ancientHacker/susen.go/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ancientHacker/susen.go/issues/25/comments","events_url":"https://api.github.com/repos/ancientHacker/susen.go/issues/25/events","html_url":"https://github.com/ancientHacker/susen.go/issues/25","id":123340682,"number":25,"title":"Puzzle errors should be returned by the squares handler","user":{"login":"ancientHacker","id":689661,"avatar_url":"https://avatars.githubusercontent.com/u/689661?v=3","gravatar_id":"","url":"https://api.github.com/users/ancientHacker","html_url":"https://github.com/ancientHacker","followers_url":"https://api.github.com/users/ancientHacker/followers","following_url":"https://api.github.com/users/ancientHacker/following{/other_user}","gists_url":"https://api.github.com/users/ancientHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/ancientHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ancientHacker/subscriptions","organizations_url":"https://api.github.com/users/ancientHacker/orgs","repos_url":"https://api.github.com/users/ancientHacker/repos","events_url":"https://api.github.com/users/ancientHacker/events{/privacy}","received_events_url":"https://api.github.com/users/ancientHacker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T19:15:55Z","updated_at":"2015-12-21T19:18:48Z","closed_at":null,"body":"Clients shouldn't have to make two calls in order to get square contents *and* puzzle errors.  In the same way that an assignment returns an Update structure with both Squares and Errors, there should be a Content call which returns a Content structure with both Squares and Errors.  (In which case the Update structure and the Content structure would be the same, so it could just be the same type of structure in both places.)  Not clear whether we need a separate call just to return the Squares without errors; I suspect not."},"comment":{"url":"https://api.github.com/repos/ancientHacker/susen.go/issues/comments/166395495","html_url":"https://github.com/ancientHacker/susen.go/issues/25#issuecomment-166395495","issue_url":"https://api.github.com/repos/ancientHacker/susen.go/issues/25","id":166395495,"user":{"login":"ancientHacker","id":689661,"avatar_url":"https://avatars.githubusercontent.com/u/689661?v=3","gravatar_id":"","url":"https://api.github.com/users/ancientHacker","html_url":"https://github.com/ancientHacker","followers_url":"https://api.github.com/users/ancientHacker/followers","following_url":"https://api.github.com/users/ancientHacker/following{/other_user}","gists_url":"https://api.github.com/users/ancientHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/ancientHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ancientHacker/subscriptions","organizations_url":"https://api.github.com/users/ancientHacker/orgs","repos_url":"https://api.github.com/users/ancientHacker/repos","events_url":"https://api.github.com/users/ancientHacker/events{/privacy}","received_events_url":"https://api.github.com/users/ancientHacker/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T19:18:47Z","updated_at":"2015-12-21T19:18:47Z","body":"Sounds like there are now going to be three calls, all of which return errors:\r\n\r\n- State: returns a State structure\r\n- Content: returns a Content structure containing all squares and any errors\r\n- Assign: returns a Content structure containing updated squares and any errors\r\n\r\nSo it looks like I'm renaming the Update structure to be Content and changing the name/signature of Squares to Content."}}