{"action":"created","comment":{"url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/comments/58719350","id":58719350,"diff_hunk":"@@ -1,6 +1,19 @@\n class Context(object):\n     def __init__(self):\n         self.link_list = []\n+        self.error_list = []\n \n     def add_link(self, link):\n         self.link_list.append(link)\n+\n+    def add_error(self, code):","path":"pyshelf/context.py","position":9,"original_position":9,"commit_id":"02ee2f0d36a34e15f56ace0144483c2cf741860f","original_commit_id":"02ee2f0d36a34e15f56ace0144483c2cf741860f","user":{"login":"kyle-long","id":1569367,"avatar_url":"https://avatars.githubusercontent.com/u/1569367?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-long","html_url":"https://github.com/kyle-long","followers_url":"https://api.github.com/users/kyle-long/followers","following_url":"https://api.github.com/users/kyle-long/following{/other_user}","gists_url":"https://api.github.com/users/kyle-long/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-long/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-long/subscriptions","organizations_url":"https://api.github.com/users/kyle-long/orgs","repos_url":"https://api.github.com/users/kyle-long/repos","events_url":"https://api.github.com/users/kyle-long/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-long/received_events","type":"User","site_admin":false},"body":"As discussed can we add an error as a code AND a message?","created_at":"2016-04-06T14:53:30Z","updated_at":"2016-04-06T14:53:30Z","html_url":"https://github.com/kyle-long/pyshelf/pull/21#discussion_r58719350","pull_request_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/comments/58719350"},"html":{"href":"https://github.com/kyle-long/pyshelf/pull/21#discussion_r58719350"},"pull_request":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21","id":65476782,"html_url":"https://github.com/kyle-long/pyshelf/pull/21","diff_url":"https://github.com/kyle-long/pyshelf/pull/21.diff","patch_url":"https://github.com/kyle-long/pyshelf/pull/21.patch","issue_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/21","number":21,"state":"open","locked":false,"title":"Search schema validation","user":{"login":"quantumew","id":14934291,"avatar_url":"https://avatars.githubusercontent.com/u/14934291?v=3","gravatar_id":"","url":"https://api.github.com/users/quantumew","html_url":"https://github.com/quantumew","followers_url":"https://api.github.com/users/quantumew/followers","following_url":"https://api.github.com/users/quantumew/following{/other_user}","gists_url":"https://api.github.com/users/quantumew/gists{/gist_id}","starred_url":"https://api.github.com/users/quantumew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantumew/subscriptions","organizations_url":"https://api.github.com/users/quantumew/orgs","repos_url":"https://api.github.com/users/quantumew/repos","events_url":"https://api.github.com/users/quantumew/events{/privacy}","received_events_url":"https://api.github.com/users/quantumew/received_events","type":"User","site_admin":false},"body":"Review it up brosky.","created_at":"2016-04-06T14:33:57Z","updated_at":"2016-04-06T14:53:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b711af00a4896dd228ec03c0691da58de913ddc9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21/commits","review_comments_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21/comments","review_comment_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/21/comments","statuses_url":"https://api.github.com/repos/kyle-long/pyshelf/statuses/02ee2f0d36a34e15f56ace0144483c2cf741860f","head":{"label":"kyle-long:search-schema","ref":"search-schema","sha":"02ee2f0d36a34e15f56ace0144483c2cf741860f","user":{"login":"kyle-long","id":1569367,"avatar_url":"https://avatars.githubusercontent.com/u/1569367?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-long","html_url":"https://github.com/kyle-long","followers_url":"https://api.github.com/users/kyle-long/followers","following_url":"https://api.github.com/users/kyle-long/following{/other_user}","gists_url":"https://api.github.com/users/kyle-long/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-long/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-long/subscriptions","organizations_url":"https://api.github.com/users/kyle-long/orgs","repos_url":"https://api.github.com/users/kyle-long/repos","events_url":"https://api.github.com/users/kyle-long/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-long/received_events","type":"User","site_admin":false},"repo":{"id":48077575,"name":"pyshelf","full_name":"kyle-long/pyshelf","owner":{"login":"kyle-long","id":1569367,"avatar_url":"https://avatars.githubusercontent.com/u/1569367?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-long","html_url":"https://github.com/kyle-long","followers_url":"https://api.github.com/users/kyle-long/followers","following_url":"https://api.github.com/users/kyle-long/following{/other_user}","gists_url":"https://api.github.com/users/kyle-long/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-long/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-long/subscriptions","organizations_url":"https://api.github.com/users/kyle-long/orgs","repos_url":"https://api.github.com/users/kyle-long/repos","events_url":"https://api.github.com/users/kyle-long/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-long/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyle-long/pyshelf","description":"REST API for AWS S3 meant to be an interface to immutable artifact storage.","fork":false,"url":"https://api.github.com/repos/kyle-long/pyshelf","forks_url":"https://api.github.com/repos/kyle-long/pyshelf/forks","keys_url":"https://api.github.com/repos/kyle-long/pyshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyle-long/pyshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyle-long/pyshelf/teams","hooks_url":"https://api.github.com/repos/kyle-long/pyshelf/hooks","issue_events_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/events{/number}","events_url":"https://api.github.com/repos/kyle-long/pyshelf/events","assignees_url":"https://api.github.com/repos/kyle-long/pyshelf/assignees{/user}","branches_url":"https://api.github.com/repos/kyle-long/pyshelf/branches{/branch}","tags_url":"https://api.github.com/repos/kyle-long/pyshelf/tags","blobs_url":"https://api.github.com/repos/kyle-long/pyshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyle-long/pyshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyle-long/pyshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyle-long/pyshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyle-long/pyshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/kyle-long/pyshelf/languages","stargazers_url":"https://api.github.com/repos/kyle-long/pyshelf/stargazers","contributors_url":"https://api.github.com/repos/kyle-long/pyshelf/contributors","subscribers_url":"https://api.github.com/repos/kyle-long/pyshelf/subscribers","subscription_url":"https://api.github.com/repos/kyle-long/pyshelf/subscription","commits_url":"https://api.github.com/repos/kyle-long/pyshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyle-long/pyshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyle-long/pyshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyle-long/pyshelf/contents/{+path}","compare_url":"https://api.github.com/repos/kyle-long/pyshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyle-long/pyshelf/merges","archive_url":"https://api.github.com/repos/kyle-long/pyshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyle-long/pyshelf/downloads","issues_url":"https://api.github.com/repos/kyle-long/pyshelf/issues{/number}","pulls_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/kyle-long/pyshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/kyle-long/pyshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyle-long/pyshelf/labels{/name}","releases_url":"https://api.github.com/repos/kyle-long/pyshelf/releases{/id}","deployments_url":"https://api.github.com/repos/kyle-long/pyshelf/deployments","created_at":"2015-12-16T00:43:49Z","updated_at":"2016-02-06T03:27:35Z","pushed_at":"2016-04-06T14:33:57Z","git_url":"git://github.com/kyle-long/pyshelf.git","ssh_url":"git@github.com:kyle-long/pyshelf.git","clone_url":"https://github.com/kyle-long/pyshelf.git","svn_url":"https://github.com/kyle-long/pyshelf","homepage":null,"size":314,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"kyle-long:develop","ref":"develop","sha":"f40e33a4061393933acb1e4e5464fc09a6a36281","user":{"login":"kyle-long","id":1569367,"avatar_url":"https://avatars.githubusercontent.com/u/1569367?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-long","html_url":"https://github.com/kyle-long","followers_url":"https://api.github.com/users/kyle-long/followers","following_url":"https://api.github.com/users/kyle-long/following{/other_user}","gists_url":"https://api.github.com/users/kyle-long/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-long/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-long/subscriptions","organizations_url":"https://api.github.com/users/kyle-long/orgs","repos_url":"https://api.github.com/users/kyle-long/repos","events_url":"https://api.github.com/users/kyle-long/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-long/received_events","type":"User","site_admin":false},"repo":{"id":48077575,"name":"pyshelf","full_name":"kyle-long/pyshelf","owner":{"login":"kyle-long","id":1569367,"avatar_url":"https://avatars.githubusercontent.com/u/1569367?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-long","html_url":"https://github.com/kyle-long","followers_url":"https://api.github.com/users/kyle-long/followers","following_url":"https://api.github.com/users/kyle-long/following{/other_user}","gists_url":"https://api.github.com/users/kyle-long/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-long/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-long/subscriptions","organizations_url":"https://api.github.com/users/kyle-long/orgs","repos_url":"https://api.github.com/users/kyle-long/repos","events_url":"https://api.github.com/users/kyle-long/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-long/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyle-long/pyshelf","description":"REST API for AWS S3 meant to be an interface to immutable artifact storage.","fork":false,"url":"https://api.github.com/repos/kyle-long/pyshelf","forks_url":"https://api.github.com/repos/kyle-long/pyshelf/forks","keys_url":"https://api.github.com/repos/kyle-long/pyshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyle-long/pyshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyle-long/pyshelf/teams","hooks_url":"https://api.github.com/repos/kyle-long/pyshelf/hooks","issue_events_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/events{/number}","events_url":"https://api.github.com/repos/kyle-long/pyshelf/events","assignees_url":"https://api.github.com/repos/kyle-long/pyshelf/assignees{/user}","branches_url":"https://api.github.com/repos/kyle-long/pyshelf/branches{/branch}","tags_url":"https://api.github.com/repos/kyle-long/pyshelf/tags","blobs_url":"https://api.github.com/repos/kyle-long/pyshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyle-long/pyshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyle-long/pyshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyle-long/pyshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyle-long/pyshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/kyle-long/pyshelf/languages","stargazers_url":"https://api.github.com/repos/kyle-long/pyshelf/stargazers","contributors_url":"https://api.github.com/repos/kyle-long/pyshelf/contributors","subscribers_url":"https://api.github.com/repos/kyle-long/pyshelf/subscribers","subscription_url":"https://api.github.com/repos/kyle-long/pyshelf/subscription","commits_url":"https://api.github.com/repos/kyle-long/pyshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyle-long/pyshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyle-long/pyshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyle-long/pyshelf/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyle-long/pyshelf/contents/{+path}","compare_url":"https://api.github.com/repos/kyle-long/pyshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyle-long/pyshelf/merges","archive_url":"https://api.github.com/repos/kyle-long/pyshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyle-long/pyshelf/downloads","issues_url":"https://api.github.com/repos/kyle-long/pyshelf/issues{/number}","pulls_url":"https://api.github.com/repos/kyle-long/pyshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/kyle-long/pyshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/kyle-long/pyshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyle-long/pyshelf/labels{/name}","releases_url":"https://api.github.com/repos/kyle-long/pyshelf/releases{/id}","deployments_url":"https://api.github.com/repos/kyle-long/pyshelf/deployments","created_at":"2015-12-16T00:43:49Z","updated_at":"2016-02-06T03:27:35Z","pushed_at":"2016-04-06T14:33:57Z","git_url":"git://github.com/kyle-long/pyshelf.git","ssh_url":"git@github.com:kyle-long/pyshelf.git","clone_url":"https://github.com/kyle-long/pyshelf.git","svn_url":"https://github.com/kyle-long/pyshelf","homepage":null,"size":314,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21"},"html":{"href":"https://github.com/kyle-long/pyshelf/pull/21"},"issue":{"href":"https://api.github.com/repos/kyle-long/pyshelf/issues/21"},"comments":{"href":"https://api.github.com/repos/kyle-long/pyshelf/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyle-long/pyshelf/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/kyle-long/pyshelf/statuses/02ee2f0d36a34e15f56ace0144483c2cf741860f"}}}}