{"action":"created","comment":{"url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/comments/105369472","pull_request_review_id":26243883,"id":105369472,"diff_hunk":"@@ -8,6 +8,7 @@ function jsonApiToJson(req, res, next) {\n \n     jsonApiData.forEach(function (event) {\n         if (event.type != 'event') {\n+            returnError(res, \"only data of type 'event' allowed.\", 400, 'Bad Request');","path":"src/parsers/jsonApiToJson.js","position":4,"original_position":4,"commit_id":"35ec6ced619fa3415d509159818a3bd582c3ea05","original_commit_id":"35ec6ced619fa3415d509159818a3bd582c3ea05","user":{"login":"tamslo","id":7488660,"avatar_url":"https://avatars3.githubusercontent.com/u/7488660?v=3","gravatar_id":"","url":"https://api.github.com/users/tamslo","html_url":"https://github.com/tamslo","followers_url":"https://api.github.com/users/tamslo/followers","following_url":"https://api.github.com/users/tamslo/following{/other_user}","gists_url":"https://api.github.com/users/tamslo/gists{/gist_id}","starred_url":"https://api.github.com/users/tamslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamslo/subscriptions","organizations_url":"https://api.github.com/users/tamslo/orgs","repos_url":"https://api.github.com/users/tamslo/repos","events_url":"https://api.github.com/users/tamslo/events{/privacy}","received_events_url":"https://api.github.com/users/tamslo/received_events","type":"User","site_admin":false},"body":"Start an error message with a capital","created_at":"2017-03-10T10:24:56Z","updated_at":"2017-03-10T10:36:32Z","html_url":"https://github.com/schulcloud/schulcloud-calendar/pull/6#discussion_r105369472","pull_request_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/comments/105369472"},"html":{"href":"https://github.com/schulcloud/schulcloud-calendar/pull/6#discussion_r105369472"},"pull_request":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6","id":110090139,"html_url":"https://github.com/schulcloud/schulcloud-calendar/pull/6","diff_url":"https://github.com/schulcloud/schulcloud-calendar/pull/6.diff","patch_url":"https://github.com/schulcloud/schulcloud-calendar/pull/6.patch","issue_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/6","number":6,"state":"open","locked":false,"title":"Implement JSON API and basic authorisation check","user":{"login":"MrSerth","id":7300329,"avatar_url":"https://avatars3.githubusercontent.com/u/7300329?v=3","gravatar_id":"","url":"https://api.github.com/users/MrSerth","html_url":"https://github.com/MrSerth","followers_url":"https://api.github.com/users/MrSerth/followers","following_url":"https://api.github.com/users/MrSerth/following{/other_user}","gists_url":"https://api.github.com/users/MrSerth/gists{/gist_id}","starred_url":"https://api.github.com/users/MrSerth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrSerth/subscriptions","organizations_url":"https://api.github.com/users/MrSerth/orgs","repos_url":"https://api.github.com/users/MrSerth/repos","events_url":"https://api.github.com/users/MrSerth/events{/privacy}","received_events_url":"https://api.github.com/users/MrSerth/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-10T09:26:20Z","updated_at":"2017-03-10T10:36:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f7610342b74d376e8da45279465ac155d898677","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6/commits","review_comments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6/comments","review_comment_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/6/comments","statuses_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/statuses/35ec6ced619fa3415d509159818a3bd582c3ea05","head":{"label":"schulcloud:jsonApi","ref":"jsonApi","sha":"35ec6ced619fa3415d509159818a3bd582c3ea05","user":{"login":"schulcloud","id":22611463,"avatar_url":"https://avatars1.githubusercontent.com/u/22611463?v=3","gravatar_id":"","url":"https://api.github.com/users/schulcloud","html_url":"https://github.com/schulcloud","followers_url":"https://api.github.com/users/schulcloud/followers","following_url":"https://api.github.com/users/schulcloud/following{/other_user}","gists_url":"https://api.github.com/users/schulcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/schulcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulcloud/subscriptions","organizations_url":"https://api.github.com/users/schulcloud/orgs","repos_url":"https://api.github.com/users/schulcloud/repos","events_url":"https://api.github.com/users/schulcloud/events{/privacy}","received_events_url":"https://api.github.com/users/schulcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":73213475,"name":"schulcloud-calendar","full_name":"schulcloud/schulcloud-calendar","owner":{"login":"schulcloud","id":22611463,"avatar_url":"https://avatars1.githubusercontent.com/u/22611463?v=3","gravatar_id":"","url":"https://api.github.com/users/schulcloud","html_url":"https://github.com/schulcloud","followers_url":"https://api.github.com/users/schulcloud/followers","following_url":"https://api.github.com/users/schulcloud/following{/other_user}","gists_url":"https://api.github.com/users/schulcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/schulcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulcloud/subscriptions","organizations_url":"https://api.github.com/users/schulcloud/orgs","repos_url":"https://api.github.com/users/schulcloud/repos","events_url":"https://api.github.com/users/schulcloud/events{/privacy}","received_events_url":"https://api.github.com/users/schulcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/schulcloud/schulcloud-calendar","description":null,"fork":false,"url":"https://api.github.com/repos/schulcloud/schulcloud-calendar","forks_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/forks","keys_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/teams","hooks_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/hooks","issue_events_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/events","assignees_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/tags","blobs_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/languages","stargazers_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/stargazers","contributors_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/contributors","subscribers_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/subscribers","subscription_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/subscription","commits_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/merges","archive_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/downloads","issues_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/labels{/name}","releases_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/releases{/id}","deployments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/deployments","created_at":"2016-11-08T18:10:14Z","updated_at":"2017-02-06T13:37:12Z","pushed_at":"2017-03-10T10:10:39Z","git_url":"git://github.com/schulcloud/schulcloud-calendar.git","ssh_url":"git@github.com:schulcloud/schulcloud-calendar.git","clone_url":"https://github.com/schulcloud/schulcloud-calendar.git","svn_url":"https://github.com/schulcloud/schulcloud-calendar","homepage":null,"size":1946,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"schulcloud:master","ref":"master","sha":"802f1fba27febe57cd8a9fb3651d9a4fd6b351eb","user":{"login":"schulcloud","id":22611463,"avatar_url":"https://avatars1.githubusercontent.com/u/22611463?v=3","gravatar_id":"","url":"https://api.github.com/users/schulcloud","html_url":"https://github.com/schulcloud","followers_url":"https://api.github.com/users/schulcloud/followers","following_url":"https://api.github.com/users/schulcloud/following{/other_user}","gists_url":"https://api.github.com/users/schulcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/schulcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulcloud/subscriptions","organizations_url":"https://api.github.com/users/schulcloud/orgs","repos_url":"https://api.github.com/users/schulcloud/repos","events_url":"https://api.github.com/users/schulcloud/events{/privacy}","received_events_url":"https://api.github.com/users/schulcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":73213475,"name":"schulcloud-calendar","full_name":"schulcloud/schulcloud-calendar","owner":{"login":"schulcloud","id":22611463,"avatar_url":"https://avatars1.githubusercontent.com/u/22611463?v=3","gravatar_id":"","url":"https://api.github.com/users/schulcloud","html_url":"https://github.com/schulcloud","followers_url":"https://api.github.com/users/schulcloud/followers","following_url":"https://api.github.com/users/schulcloud/following{/other_user}","gists_url":"https://api.github.com/users/schulcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/schulcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schulcloud/subscriptions","organizations_url":"https://api.github.com/users/schulcloud/orgs","repos_url":"https://api.github.com/users/schulcloud/repos","events_url":"https://api.github.com/users/schulcloud/events{/privacy}","received_events_url":"https://api.github.com/users/schulcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/schulcloud/schulcloud-calendar","description":null,"fork":false,"url":"https://api.github.com/repos/schulcloud/schulcloud-calendar","forks_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/forks","keys_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/teams","hooks_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/hooks","issue_events_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/events","assignees_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/tags","blobs_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/languages","stargazers_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/stargazers","contributors_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/contributors","subscribers_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/subscribers","subscription_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/subscription","commits_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/merges","archive_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/downloads","issues_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/labels{/name}","releases_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/releases{/id}","deployments_url":"https://api.github.com/repos/schulcloud/schulcloud-calendar/deployments","created_at":"2016-11-08T18:10:14Z","updated_at":"2017-02-06T13:37:12Z","pushed_at":"2017-03-10T10:10:39Z","git_url":"git://github.com/schulcloud/schulcloud-calendar.git","ssh_url":"git@github.com:schulcloud/schulcloud-calendar.git","clone_url":"https://github.com/schulcloud/schulcloud-calendar.git","svn_url":"https://github.com/schulcloud/schulcloud-calendar","homepage":null,"size":1946,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6"},"html":{"href":"https://github.com/schulcloud/schulcloud-calendar/pull/6"},"issue":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/6"},"comments":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/schulcloud/schulcloud-calendar/statuses/35ec6ced619fa3415d509159818a3bd582c3ea05"}}}}
{"actor":{"display_login":"tamslo"}}