{"action":"created","comment":{"url":"https://api.github.com/repos/ruby-grape/grape/pulls/comments/81393421","pull_request_review_id":2378548,"id":81393421,"diff_hunk":"@@ -1355,6 +1355,23 @@ subject.rescue_from Grape::Exceptions::ValidationErrors do |e|\n end\n ```\n \n+Grape returns all validation and coercion errors found by default. To skip all subsequent validation checks when a specific param is found invalid, use `fail_fast: true`.\n+For example:","path":"README.md","position":5,"original_position":5,"commit_id":"32de18e33ff0fb4030e7c19cba87a06c091a829c","original_commit_id":"32de18e33ff0fb4030e7c19cba87a06c091a829c","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"body":"Maybe space things up a bit. Minor.","created_at":"2016-09-30T18:31:12Z","updated_at":"2016-09-30T18:31:12Z","html_url":"https://github.com/ruby-grape/grape/pull/1499#discussion_r81393421","pull_request_url":"https://api.github.com/repos/ruby-grape/grape/pulls/1499","_links":{"self":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/comments/81393421"},"html":{"href":"https://github.com/ruby-grape/grape/pull/1499#discussion_r81393421"},"pull_request":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1499"}}},"pull_request":{"url":"https://api.github.com/repos/ruby-grape/grape/pulls/1499","id":87136901,"html_url":"https://github.com/ruby-grape/grape/pull/1499","diff_url":"https://github.com/ruby-grape/grape/pull/1499.diff","patch_url":"https://github.com/ruby-grape/grape/pull/1499.patch","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1499","number":1499,"state":"open","locked":false,"title":"Support fail_fast param validation option","user":{"login":"dgasper","id":1153245,"avatar_url":"https://avatars.githubusercontent.com/u/1153245?v=3","gravatar_id":"","url":"https://api.github.com/users/dgasper","html_url":"https://github.com/dgasper","followers_url":"https://api.github.com/users/dgasper/followers","following_url":"https://api.github.com/users/dgasper/following{/other_user}","gists_url":"https://api.github.com/users/dgasper/gists{/gist_id}","starred_url":"https://api.github.com/users/dgasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgasper/subscriptions","organizations_url":"https://api.github.com/users/dgasper/orgs","repos_url":"https://api.github.com/users/dgasper/repos","events_url":"https://api.github.com/users/dgasper/events{/privacy}","received_events_url":"https://api.github.com/users/dgasper/received_events","type":"User","site_admin":false},"body":"[#1423](https://github.com/ruby-grape/grape/issues/1423)\r\nThis change will enable\r\n```ruby\r\nparams do\r\n  required :beer, fail_fast: true\r\n  required :wine\r\nend\r\n```\r\nwhich will result in skipping of subsequent validation checks if a fail_fast required or optional fail validation.","created_at":"2016-09-28T14:55:55Z","updated_at":"2016-09-30T18:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"beda6418df18ff235fa41e7b499961d5654456a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruby-grape/grape/pulls/1499/commits","review_comments_url":"https://api.github.com/repos/ruby-grape/grape/pulls/1499/comments","review_comment_url":"https://api.github.com/repos/ruby-grape/grape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1499/comments","statuses_url":"https://api.github.com/repos/ruby-grape/grape/statuses/32de18e33ff0fb4030e7c19cba87a06c091a829c","head":{"label":"dgasper:fail-fast-on-param-validation","ref":"fail-fast-on-param-validation","sha":"32de18e33ff0fb4030e7c19cba87a06c091a829c","user":{"login":"dgasper","id":1153245,"avatar_url":"https://avatars.githubusercontent.com/u/1153245?v=3","gravatar_id":"","url":"https://api.github.com/users/dgasper","html_url":"https://github.com/dgasper","followers_url":"https://api.github.com/users/dgasper/followers","following_url":"https://api.github.com/users/dgasper/following{/other_user}","gists_url":"https://api.github.com/users/dgasper/gists{/gist_id}","starred_url":"https://api.github.com/users/dgasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgasper/subscriptions","organizations_url":"https://api.github.com/users/dgasper/orgs","repos_url":"https://api.github.com/users/dgasper/repos","events_url":"https://api.github.com/users/dgasper/events{/privacy}","received_events_url":"https://api.github.com/users/dgasper/received_events","type":"User","site_admin":false},"repo":{"id":69240230,"name":"grape","full_name":"dgasper/grape","owner":{"login":"dgasper","id":1153245,"avatar_url":"https://avatars.githubusercontent.com/u/1153245?v=3","gravatar_id":"","url":"https://api.github.com/users/dgasper","html_url":"https://github.com/dgasper","followers_url":"https://api.github.com/users/dgasper/followers","following_url":"https://api.github.com/users/dgasper/following{/other_user}","gists_url":"https://api.github.com/users/dgasper/gists{/gist_id}","starred_url":"https://api.github.com/users/dgasper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgasper/subscriptions","organizations_url":"https://api.github.com/users/dgasper/orgs","repos_url":"https://api.github.com/users/dgasper/repos","events_url":"https://api.github.com/users/dgasper/events{/privacy}","received_events_url":"https://api.github.com/users/dgasper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgasper/grape","description":"An opinionated framework for creating REST-like APIs in Ruby.","fork":true,"url":"https://api.github.com/repos/dgasper/grape","forks_url":"https://api.github.com/repos/dgasper/grape/forks","keys_url":"https://api.github.com/repos/dgasper/grape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgasper/grape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgasper/grape/teams","hooks_url":"https://api.github.com/repos/dgasper/grape/hooks","issue_events_url":"https://api.github.com/repos/dgasper/grape/issues/events{/number}","events_url":"https://api.github.com/repos/dgasper/grape/events","assignees_url":"https://api.github.com/repos/dgasper/grape/assignees{/user}","branches_url":"https://api.github.com/repos/dgasper/grape/branches{/branch}","tags_url":"https://api.github.com/repos/dgasper/grape/tags","blobs_url":"https://api.github.com/repos/dgasper/grape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgasper/grape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgasper/grape/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgasper/grape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgasper/grape/statuses/{sha}","languages_url":"https://api.github.com/repos/dgasper/grape/languages","stargazers_url":"https://api.github.com/repos/dgasper/grape/stargazers","contributors_url":"https://api.github.com/repos/dgasper/grape/contributors","subscribers_url":"https://api.github.com/repos/dgasper/grape/subscribers","subscription_url":"https://api.github.com/repos/dgasper/grape/subscription","commits_url":"https://api.github.com/repos/dgasper/grape/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgasper/grape/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgasper/grape/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgasper/grape/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgasper/grape/contents/{+path}","compare_url":"https://api.github.com/repos/dgasper/grape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgasper/grape/merges","archive_url":"https://api.github.com/repos/dgasper/grape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgasper/grape/downloads","issues_url":"https://api.github.com/repos/dgasper/grape/issues{/number}","pulls_url":"https://api.github.com/repos/dgasper/grape/pulls{/number}","milestones_url":"https://api.github.com/repos/dgasper/grape/milestones{/number}","notifications_url":"https://api.github.com/repos/dgasper/grape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgasper/grape/labels{/name}","releases_url":"https://api.github.com/repos/dgasper/grape/releases{/id}","deployments_url":"https://api.github.com/repos/dgasper/grape/deployments","created_at":"2016-09-26T10:42:58Z","updated_at":"2016-09-26T10:43:00Z","pushed_at":"2016-09-28T15:01:59Z","git_url":"git://github.com/dgasper/grape.git","ssh_url":"git@github.com:dgasper/grape.git","clone_url":"https://github.com/dgasper/grape.git","svn_url":"https://github.com/dgasper/grape","homepage":"http://www.ruby-grape.org","size":3855,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruby-grape:master","ref":"master","sha":"5683154c28f6c78ad7f3035061aca7a34ddefa06","user":{"login":"ruby-grape","id":13624553,"avatar_url":"https://avatars.githubusercontent.com/u/13624553?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-grape","html_url":"https://github.com/ruby-grape","followers_url":"https://api.github.com/users/ruby-grape/followers","following_url":"https://api.github.com/users/ruby-grape/following{/other_user}","gists_url":"https://api.github.com/users/ruby-grape/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-grape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-grape/subscriptions","organizations_url":"https://api.github.com/users/ruby-grape/orgs","repos_url":"https://api.github.com/users/ruby-grape/repos","events_url":"https://api.github.com/users/ruby-grape/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-grape/received_events","type":"Organization","site_admin":false},"repo":{"id":812393,"name":"grape","full_name":"ruby-grape/grape","owner":{"login":"ruby-grape","id":13624553,"avatar_url":"https://avatars.githubusercontent.com/u/13624553?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-grape","html_url":"https://github.com/ruby-grape","followers_url":"https://api.github.com/users/ruby-grape/followers","following_url":"https://api.github.com/users/ruby-grape/following{/other_user}","gists_url":"https://api.github.com/users/ruby-grape/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-grape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-grape/subscriptions","organizations_url":"https://api.github.com/users/ruby-grape/orgs","repos_url":"https://api.github.com/users/ruby-grape/repos","events_url":"https://api.github.com/users/ruby-grape/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-grape/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruby-grape/grape","description":"An opinionated framework for creating REST-like APIs in Ruby.","fork":false,"url":"https://api.github.com/repos/ruby-grape/grape","forks_url":"https://api.github.com/repos/ruby-grape/grape/forks","keys_url":"https://api.github.com/repos/ruby-grape/grape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruby-grape/grape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruby-grape/grape/teams","hooks_url":"https://api.github.com/repos/ruby-grape/grape/hooks","issue_events_url":"https://api.github.com/repos/ruby-grape/grape/issues/events{/number}","events_url":"https://api.github.com/repos/ruby-grape/grape/events","assignees_url":"https://api.github.com/repos/ruby-grape/grape/assignees{/user}","branches_url":"https://api.github.com/repos/ruby-grape/grape/branches{/branch}","tags_url":"https://api.github.com/repos/ruby-grape/grape/tags","blobs_url":"https://api.github.com/repos/ruby-grape/grape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruby-grape/grape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruby-grape/grape/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruby-grape/grape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruby-grape/grape/statuses/{sha}","languages_url":"https://api.github.com/repos/ruby-grape/grape/languages","stargazers_url":"https://api.github.com/repos/ruby-grape/grape/stargazers","contributors_url":"https://api.github.com/repos/ruby-grape/grape/contributors","subscribers_url":"https://api.github.com/repos/ruby-grape/grape/subscribers","subscription_url":"https://api.github.com/repos/ruby-grape/grape/subscription","commits_url":"https://api.github.com/repos/ruby-grape/grape/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruby-grape/grape/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruby-grape/grape/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruby-grape/grape/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruby-grape/grape/contents/{+path}","compare_url":"https://api.github.com/repos/ruby-grape/grape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruby-grape/grape/merges","archive_url":"https://api.github.com/repos/ruby-grape/grape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruby-grape/grape/downloads","issues_url":"https://api.github.com/repos/ruby-grape/grape/issues{/number}","pulls_url":"https://api.github.com/repos/ruby-grape/grape/pulls{/number}","milestones_url":"https://api.github.com/repos/ruby-grape/grape/milestones{/number}","notifications_url":"https://api.github.com/repos/ruby-grape/grape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruby-grape/grape/labels{/name}","releases_url":"https://api.github.com/repos/ruby-grape/grape/releases{/id}","deployments_url":"https://api.github.com/repos/ruby-grape/grape/deployments","created_at":"2010-08-02T14:25:08Z","updated_at":"2016-09-30T02:04:19Z","pushed_at":"2016-09-28T15:02:00Z","git_url":"git://github.com/ruby-grape/grape.git","ssh_url":"git@github.com:ruby-grape/grape.git","clone_url":"https://github.com/ruby-grape/grape.git","svn_url":"https://github.com/ruby-grape/grape","homepage":"http://www.ruby-grape.org","size":8635,"stargazers_count":7581,"watchers_count":7581,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":912,"mirror_url":null,"open_issues_count":151,"forks":912,"open_issues":151,"watchers":7581,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1499"},"html":{"href":"https://github.com/ruby-grape/grape/pull/1499"},"issue":{"href":"https://api.github.com/repos/ruby-grape/grape/issues/1499"},"comments":{"href":"https://api.github.com/repos/ruby-grape/grape/issues/1499/comments"},"review_comments":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1499/comments"},"review_comment":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1499/commits"},"statuses":{"href":"https://api.github.com/repos/ruby-grape/grape/statuses/32de18e33ff0fb4030e7c19cba87a06c091a829c"}}}}
{"actor":{"display_login":"dblock"}}