{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/lexich/redux-api/pulls/15","id":46281564,"html_url":"https://github.com/lexich/redux-api/pull/15","diff_url":"https://github.com/lexich/redux-api/pull/15.diff","patch_url":"https://github.com/lexich/redux-api/pull/15.patch","issue_url":"https://api.github.com/repos/lexich/redux-api/issues/15","number":15,"state":"open","locked":false,"title":"Validation option to enpoint config","user":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"body":"Validation responce\r\n```js\r\n{\r\n  test: {\r\n    url: \"/api/test\",\r\n    validation: (data, cb) {\r\n      // check data format\r\n      let error;\r\n      if (data instanceOf Array) {\r\n        error = \"Data must be array\";\r\n      }\r\n      cb(error);\r\n    }\r\n  }\r\n}\r\n```","created_at":"2015-09-29T14:08:26Z","updated_at":"2015-09-29T14:08:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lexich/redux-api/pulls/15/commits","review_comments_url":"https://api.github.com/repos/lexich/redux-api/pulls/15/comments","review_comment_url":"https://api.github.com/repos/lexich/redux-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lexich/redux-api/issues/15/comments","statuses_url":"https://api.github.com/repos/lexich/redux-api/statuses/d0156120c8d04bacce3a548dc96b249dd3ebf2f4","head":{"label":"lexich:validation","ref":"validation","sha":"d0156120c8d04bacce3a548dc96b249dd3ebf2f4","user":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"repo":{"id":40594264,"name":"redux-api","full_name":"lexich/redux-api","owner":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lexich/redux-api","description":"Flux REST API for redux infrastructure","fork":false,"url":"https://api.github.com/repos/lexich/redux-api","forks_url":"https://api.github.com/repos/lexich/redux-api/forks","keys_url":"https://api.github.com/repos/lexich/redux-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lexich/redux-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lexich/redux-api/teams","hooks_url":"https://api.github.com/repos/lexich/redux-api/hooks","issue_events_url":"https://api.github.com/repos/lexich/redux-api/issues/events{/number}","events_url":"https://api.github.com/repos/lexich/redux-api/events","assignees_url":"https://api.github.com/repos/lexich/redux-api/assignees{/user}","branches_url":"https://api.github.com/repos/lexich/redux-api/branches{/branch}","tags_url":"https://api.github.com/repos/lexich/redux-api/tags","blobs_url":"https://api.github.com/repos/lexich/redux-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lexich/redux-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lexich/redux-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lexich/redux-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lexich/redux-api/statuses/{sha}","languages_url":"https://api.github.com/repos/lexich/redux-api/languages","stargazers_url":"https://api.github.com/repos/lexich/redux-api/stargazers","contributors_url":"https://api.github.com/repos/lexich/redux-api/contributors","subscribers_url":"https://api.github.com/repos/lexich/redux-api/subscribers","subscription_url":"https://api.github.com/repos/lexich/redux-api/subscription","commits_url":"https://api.github.com/repos/lexich/redux-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lexich/redux-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lexich/redux-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lexich/redux-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lexich/redux-api/contents/{+path}","compare_url":"https://api.github.com/repos/lexich/redux-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lexich/redux-api/merges","archive_url":"https://api.github.com/repos/lexich/redux-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lexich/redux-api/downloads","issues_url":"https://api.github.com/repos/lexich/redux-api/issues{/number}","pulls_url":"https://api.github.com/repos/lexich/redux-api/pulls{/number}","milestones_url":"https://api.github.com/repos/lexich/redux-api/milestones{/number}","notifications_url":"https://api.github.com/repos/lexich/redux-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lexich/redux-api/labels{/name}","releases_url":"https://api.github.com/repos/lexich/redux-api/releases{/id}","created_at":"2015-08-12T10:11:44Z","updated_at":"2015-09-29T02:37:31Z","pushed_at":"2015-09-29T14:07:27Z","git_url":"git://github.com/lexich/redux-api.git","ssh_url":"git@github.com:lexich/redux-api.git","clone_url":"https://github.com/lexich/redux-api.git","svn_url":"https://github.com/lexich/redux-api","homepage":"","size":963,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":27,"default_branch":"master"}},"base":{"label":"lexich:master","ref":"master","sha":"83d769f24f7efcaaff228888c9a5b56288821a51","user":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"repo":{"id":40594264,"name":"redux-api","full_name":"lexich/redux-api","owner":{"login":"lexich","id":859946,"avatar_url":"https://avatars.githubusercontent.com/u/859946?v=3","gravatar_id":"","url":"https://api.github.com/users/lexich","html_url":"https://github.com/lexich","followers_url":"https://api.github.com/users/lexich/followers","following_url":"https://api.github.com/users/lexich/following{/other_user}","gists_url":"https://api.github.com/users/lexich/gists{/gist_id}","starred_url":"https://api.github.com/users/lexich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexich/subscriptions","organizations_url":"https://api.github.com/users/lexich/orgs","repos_url":"https://api.github.com/users/lexich/repos","events_url":"https://api.github.com/users/lexich/events{/privacy}","received_events_url":"https://api.github.com/users/lexich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lexich/redux-api","description":"Flux REST API for redux infrastructure","fork":false,"url":"https://api.github.com/repos/lexich/redux-api","forks_url":"https://api.github.com/repos/lexich/redux-api/forks","keys_url":"https://api.github.com/repos/lexich/redux-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lexich/redux-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lexich/redux-api/teams","hooks_url":"https://api.github.com/repos/lexich/redux-api/hooks","issue_events_url":"https://api.github.com/repos/lexich/redux-api/issues/events{/number}","events_url":"https://api.github.com/repos/lexich/redux-api/events","assignees_url":"https://api.github.com/repos/lexich/redux-api/assignees{/user}","branches_url":"https://api.github.com/repos/lexich/redux-api/branches{/branch}","tags_url":"https://api.github.com/repos/lexich/redux-api/tags","blobs_url":"https://api.github.com/repos/lexich/redux-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lexich/redux-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lexich/redux-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lexich/redux-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lexich/redux-api/statuses/{sha}","languages_url":"https://api.github.com/repos/lexich/redux-api/languages","stargazers_url":"https://api.github.com/repos/lexich/redux-api/stargazers","contributors_url":"https://api.github.com/repos/lexich/redux-api/contributors","subscribers_url":"https://api.github.com/repos/lexich/redux-api/subscribers","subscription_url":"https://api.github.com/repos/lexich/redux-api/subscription","commits_url":"https://api.github.com/repos/lexich/redux-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lexich/redux-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lexich/redux-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lexich/redux-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lexich/redux-api/contents/{+path}","compare_url":"https://api.github.com/repos/lexich/redux-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lexich/redux-api/merges","archive_url":"https://api.github.com/repos/lexich/redux-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lexich/redux-api/downloads","issues_url":"https://api.github.com/repos/lexich/redux-api/issues{/number}","pulls_url":"https://api.github.com/repos/lexich/redux-api/pulls{/number}","milestones_url":"https://api.github.com/repos/lexich/redux-api/milestones{/number}","notifications_url":"https://api.github.com/repos/lexich/redux-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lexich/redux-api/labels{/name}","releases_url":"https://api.github.com/repos/lexich/redux-api/releases{/id}","created_at":"2015-08-12T10:11:44Z","updated_at":"2015-09-29T02:37:31Z","pushed_at":"2015-09-29T14:07:27Z","git_url":"git://github.com/lexich/redux-api.git","ssh_url":"git@github.com:lexich/redux-api.git","clone_url":"https://github.com/lexich/redux-api.git","svn_url":"https://github.com/lexich/redux-api","homepage":"","size":963,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lexich/redux-api/pulls/15"},"html":{"href":"https://github.com/lexich/redux-api/pull/15"},"issue":{"href":"https://api.github.com/repos/lexich/redux-api/issues/15"},"comments":{"href":"https://api.github.com/repos/lexich/redux-api/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/lexich/redux-api/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/lexich/redux-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lexich/redux-api/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/lexich/redux-api/statuses/d0156120c8d04bacce3a548dc96b249dd3ebf2f4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":100,"deletions":8,"changed_files":9}}