{"action":"opened","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1508","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1508/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1508/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1508/events","html_url":"https://github.com/ruby-grape/grape/issues/1508","id":182230897,"number":1508,"title":"Inconsistent validation messages","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T10:38:36Z","updated_at":"2016-10-11T10:38:36Z","closed_at":null,"body":"When defining parameters in separate `requires`, the validation errors include errors for all defined params. For example the following returns `one is missing, two is missing`\r\n```ruby\r\nparams do\r\n  requires :one, type: Integer\r\n  requires :two, type: Integer\r\nend\r\n```\r\n\r\nIn contrast, the following usage of a single `requires` for multiple params only returns `one is missing`.\r\n```ruby\r\nparams do\r\n  requires :one, :two, type: Integer\r\nend\r\n```\r\n\r\nI've tracked down where the validation is stopped to [this line](https://github.com/ruby-grape/grape/blob/master/lib/grape/validations/validators/base.rb#L48). Removing it results in both above examples returning `one is missing, two is missing`.\r\n\r\nIs this something we would want or is the above behavior expected?\r\n\r\n"}}
{"actor":{"display_login":"dgasper"}}