{"action":"created","comment":{"url":"https://api.github.com/repos/nyaruka/goflow/pulls/comments/130072312","pull_request_review_id":52910453,"id":130072312,"diff_hunk":"@@ -114,7 +114,7 @@ func writeError(w http.ResponseWriter, r *http.Request, status int, err error) e\n \tlg.Log(r.Context()).WithError(err).Error()\n \terrors := []string{err.Error()}\n \n-\tvErrs, isValidation := err.(utils.ValidationError)\n+\tvErrs, isValidation := err.(utils.ValidationErrors)","path":"cmd/flowserver/main.go","position":5,"original_position":5,"commit_id":"e12ce50b6d0fec92221cd594257df0b707207b36","original_commit_id":"e12ce50b6d0fec92221cd594257df0b707207b36","user":{"login":"rowanseymour","id":675558,"avatar_url":"https://avatars0.githubusercontent.com/u/675558?v=4","gravatar_id":"","url":"https://api.github.com/users/rowanseymour","html_url":"https://github.com/rowanseymour","followers_url":"https://api.github.com/users/rowanseymour/followers","following_url":"https://api.github.com/users/rowanseymour/following{/other_user}","gists_url":"https://api.github.com/users/rowanseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanseymour/subscriptions","organizations_url":"https://api.github.com/users/rowanseymour/orgs","repos_url":"https://api.github.com/users/rowanseymour/repos","events_url":"https://api.github.com/users/rowanseymour/events{/privacy}","received_events_url":"https://api.github.com/users/rowanseymour/received_events","type":"User","site_admin":false},"body":"This is just an array of errors now so this name seems apt","created_at":"2017-07-28T11:52:23Z","updated_at":"2017-07-28T11:52:23Z","html_url":"https://github.com/nyaruka/goflow/pull/76#discussion_r130072312","pull_request_url":"https://api.github.com/repos/nyaruka/goflow/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/comments/130072312"},"html":{"href":"https://github.com/nyaruka/goflow/pull/76#discussion_r130072312"},"pull_request":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/nyaruka/goflow/pulls/76","id":132952401,"html_url":"https://github.com/nyaruka/goflow/pull/76","diff_url":"https://github.com/nyaruka/goflow/pull/76.diff","patch_url":"https://github.com/nyaruka/goflow/pull/76.patch","issue_url":"https://api.github.com/repos/nyaruka/goflow/issues/76","number":76,"state":"open","locked":false,"title":"Better validation errors","user":{"login":"rowanseymour","id":675558,"avatar_url":"https://avatars0.githubusercontent.com/u/675558?v=4","gravatar_id":"","url":"https://api.github.com/users/rowanseymour","html_url":"https://github.com/rowanseymour","followers_url":"https://api.github.com/users/rowanseymour/followers","following_url":"https://api.github.com/users/rowanseymour/following{/other_user}","gists_url":"https://api.github.com/users/rowanseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanseymour/subscriptions","organizations_url":"https://api.github.com/users/rowanseymour/orgs","repos_url":"https://api.github.com/users/rowanseymour/repos","events_url":"https://api.github.com/users/rowanseymour/events{/privacy}","received_events_url":"https://api.github.com/users/rowanseymour/received_events","type":"User","site_admin":false},"body":"For example: \r\n\r\n```json\r\n\"errors\": [\r\n    \"field 'created_on' on 'event[type=msg_received]' is required\"\r\n]\r\n```","created_at":"2017-07-28T11:49:18Z","updated_at":"2017-07-28T11:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b53db779a37e55b3c5175accb0e949b60998324d","assignee":{"login":"rowanseymour","id":675558,"avatar_url":"https://avatars0.githubusercontent.com/u/675558?v=4","gravatar_id":"","url":"https://api.github.com/users/rowanseymour","html_url":"https://github.com/rowanseymour","followers_url":"https://api.github.com/users/rowanseymour/followers","following_url":"https://api.github.com/users/rowanseymour/following{/other_user}","gists_url":"https://api.github.com/users/rowanseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanseymour/subscriptions","organizations_url":"https://api.github.com/users/rowanseymour/orgs","repos_url":"https://api.github.com/users/rowanseymour/repos","events_url":"https://api.github.com/users/rowanseymour/events{/privacy}","received_events_url":"https://api.github.com/users/rowanseymour/received_events","type":"User","site_admin":false},"assignees":[{"login":"rowanseymour","id":675558,"avatar_url":"https://avatars0.githubusercontent.com/u/675558?v=4","gravatar_id":"","url":"https://api.github.com/users/rowanseymour","html_url":"https://github.com/rowanseymour","followers_url":"https://api.github.com/users/rowanseymour/followers","following_url":"https://api.github.com/users/rowanseymour/following{/other_user}","gists_url":"https://api.github.com/users/rowanseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanseymour/subscriptions","organizations_url":"https://api.github.com/users/rowanseymour/orgs","repos_url":"https://api.github.com/users/rowanseymour/repos","events_url":"https://api.github.com/users/rowanseymour/events{/privacy}","received_events_url":"https://api.github.com/users/rowanseymour/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nyaruka/goflow/pulls/76/commits","review_comments_url":"https://api.github.com/repos/nyaruka/goflow/pulls/76/comments","review_comment_url":"https://api.github.com/repos/nyaruka/goflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyaruka/goflow/issues/76/comments","statuses_url":"https://api.github.com/repos/nyaruka/goflow/statuses/e12ce50b6d0fec92221cd594257df0b707207b36","head":{"label":"nyaruka:validation","ref":"validation","sha":"e12ce50b6d0fec92221cd594257df0b707207b36","user":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars0.githubusercontent.com/u/299256?v=4","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"repo":{"id":90892160,"name":"goflow","full_name":"nyaruka/goflow","owner":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars0.githubusercontent.com/u/299256?v=4","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyaruka/goflow","description":"Golang Flow Engine for RapidPro","fork":false,"url":"https://api.github.com/repos/nyaruka/goflow","forks_url":"https://api.github.com/repos/nyaruka/goflow/forks","keys_url":"https://api.github.com/repos/nyaruka/goflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyaruka/goflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyaruka/goflow/teams","hooks_url":"https://api.github.com/repos/nyaruka/goflow/hooks","issue_events_url":"https://api.github.com/repos/nyaruka/goflow/issues/events{/number}","events_url":"https://api.github.com/repos/nyaruka/goflow/events","assignees_url":"https://api.github.com/repos/nyaruka/goflow/assignees{/user}","branches_url":"https://api.github.com/repos/nyaruka/goflow/branches{/branch}","tags_url":"https://api.github.com/repos/nyaruka/goflow/tags","blobs_url":"https://api.github.com/repos/nyaruka/goflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyaruka/goflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyaruka/goflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyaruka/goflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyaruka/goflow/statuses/{sha}","languages_url":"https://api.github.com/repos/nyaruka/goflow/languages","stargazers_url":"https://api.github.com/repos/nyaruka/goflow/stargazers","contributors_url":"https://api.github.com/repos/nyaruka/goflow/contributors","subscribers_url":"https://api.github.com/repos/nyaruka/goflow/subscribers","subscription_url":"https://api.github.com/repos/nyaruka/goflow/subscription","commits_url":"https://api.github.com/repos/nyaruka/goflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyaruka/goflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyaruka/goflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyaruka/goflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyaruka/goflow/contents/{+path}","compare_url":"https://api.github.com/repos/nyaruka/goflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyaruka/goflow/merges","archive_url":"https://api.github.com/repos/nyaruka/goflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyaruka/goflow/downloads","issues_url":"https://api.github.com/repos/nyaruka/goflow/issues{/number}","pulls_url":"https://api.github.com/repos/nyaruka/goflow/pulls{/number}","milestones_url":"https://api.github.com/repos/nyaruka/goflow/milestones{/number}","notifications_url":"https://api.github.com/repos/nyaruka/goflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyaruka/goflow/labels{/name}","releases_url":"https://api.github.com/repos/nyaruka/goflow/releases{/id}","deployments_url":"https://api.github.com/repos/nyaruka/goflow/deployments","created_at":"2017-05-10T17:43:06Z","updated_at":"2017-07-08T08:31:36Z","pushed_at":"2017-07-28T11:49:18Z","git_url":"git://github.com/nyaruka/goflow.git","ssh_url":"git@github.com:nyaruka/goflow.git","clone_url":"https://github.com/nyaruka/goflow.git","svn_url":"https://github.com/nyaruka/goflow","homepage":"","size":2436,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":2,"default_branch":"master"}},"base":{"label":"nyaruka:master","ref":"master","sha":"c547ca21ed787fc2486c66fd2ae4e15443125b0f","user":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars0.githubusercontent.com/u/299256?v=4","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"repo":{"id":90892160,"name":"goflow","full_name":"nyaruka/goflow","owner":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars0.githubusercontent.com/u/299256?v=4","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyaruka/goflow","description":"Golang Flow Engine for RapidPro","fork":false,"url":"https://api.github.com/repos/nyaruka/goflow","forks_url":"https://api.github.com/repos/nyaruka/goflow/forks","keys_url":"https://api.github.com/repos/nyaruka/goflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyaruka/goflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyaruka/goflow/teams","hooks_url":"https://api.github.com/repos/nyaruka/goflow/hooks","issue_events_url":"https://api.github.com/repos/nyaruka/goflow/issues/events{/number}","events_url":"https://api.github.com/repos/nyaruka/goflow/events","assignees_url":"https://api.github.com/repos/nyaruka/goflow/assignees{/user}","branches_url":"https://api.github.com/repos/nyaruka/goflow/branches{/branch}","tags_url":"https://api.github.com/repos/nyaruka/goflow/tags","blobs_url":"https://api.github.com/repos/nyaruka/goflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyaruka/goflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyaruka/goflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyaruka/goflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyaruka/goflow/statuses/{sha}","languages_url":"https://api.github.com/repos/nyaruka/goflow/languages","stargazers_url":"https://api.github.com/repos/nyaruka/goflow/stargazers","contributors_url":"https://api.github.com/repos/nyaruka/goflow/contributors","subscribers_url":"https://api.github.com/repos/nyaruka/goflow/subscribers","subscription_url":"https://api.github.com/repos/nyaruka/goflow/subscription","commits_url":"https://api.github.com/repos/nyaruka/goflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyaruka/goflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyaruka/goflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyaruka/goflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyaruka/goflow/contents/{+path}","compare_url":"https://api.github.com/repos/nyaruka/goflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyaruka/goflow/merges","archive_url":"https://api.github.com/repos/nyaruka/goflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyaruka/goflow/downloads","issues_url":"https://api.github.com/repos/nyaruka/goflow/issues{/number}","pulls_url":"https://api.github.com/repos/nyaruka/goflow/pulls{/number}","milestones_url":"https://api.github.com/repos/nyaruka/goflow/milestones{/number}","notifications_url":"https://api.github.com/repos/nyaruka/goflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyaruka/goflow/labels{/name}","releases_url":"https://api.github.com/repos/nyaruka/goflow/releases{/id}","deployments_url":"https://api.github.com/repos/nyaruka/goflow/deployments","created_at":"2017-05-10T17:43:06Z","updated_at":"2017-07-08T08:31:36Z","pushed_at":"2017-07-28T11:49:18Z","git_url":"git://github.com/nyaruka/goflow.git","ssh_url":"git@github.com:nyaruka/goflow.git","clone_url":"https://github.com/nyaruka/goflow.git","svn_url":"https://github.com/nyaruka/goflow","homepage":"","size":2436,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/76"},"html":{"href":"https://github.com/nyaruka/goflow/pull/76"},"issue":{"href":"https://api.github.com/repos/nyaruka/goflow/issues/76"},"comments":{"href":"https://api.github.com/repos/nyaruka/goflow/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyaruka/goflow/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/nyaruka/goflow/statuses/e12ce50b6d0fec92221cd594257df0b707207b36"}}}}
{"actor":{"display_login":"rowanseymour"}}