{"action":"opened","issue":{"url":"https://api.github.com/repos/ruby-grape/grape/issues/1278","repository_url":"https://api.github.com/repos/ruby-grape/grape","labels_url":"https://api.github.com/repos/ruby-grape/grape/issues/1278/labels{/name}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1278/comments","events_url":"https://api.github.com/repos/ruby-grape/grape/issues/1278/events","html_url":"https://github.com/ruby-grape/grape/issues/1278","id":133924834,"number":1278,"title":"Params validations do not run for route_param","user":{"login":"dapicester","id":3007132,"avatar_url":"https://avatars.githubusercontent.com/u/3007132?v=3","gravatar_id":"","url":"https://api.github.com/users/dapicester","html_url":"https://github.com/dapicester","followers_url":"https://api.github.com/users/dapicester/followers","following_url":"https://api.github.com/users/dapicester/following{/other_user}","gists_url":"https://api.github.com/users/dapicester/gists{/gist_id}","starred_url":"https://api.github.com/users/dapicester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dapicester/subscriptions","organizations_url":"https://api.github.com/users/dapicester/orgs","repos_url":"https://api.github.com/users/dapicester/repos","events_url":"https://api.github.com/users/dapicester/events{/privacy}","received_events_url":"https://api.github.com/users/dapicester/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T09:12:33Z","updated_at":"2016-02-16T09:12:33Z","closed_at":null,"body":"Hi, I found that validations do not run for `route_param`, here is a minimal example:\r\n```ruby\r\n# file: route_param_test.ru\r\n\r\nrequire 'grape'\r\n\r\nclass Bang < Grape::Validations::Base\r\n  def validate_param!(attr_name, params)\r\n    fail Grape::Exceptions::Validation, params: [@scope.full_name(attr_name)], message: 'bang'\r\n  end\r\nend\r\n\r\nclass RouteParamTest < Grape::API\r\n  format :json\r\n  default_format :json\r\n\r\n  params do\r\n    requires :name, type: String, bang: true\r\n  end\r\n  route_param :name do\r\n    get do\r\n      present :name, params[:name]\r\n    end\r\n  end\r\nend\r\n\r\nrun RouteParam\r\n```\r\n\r\nRun with `rackup route_param.ru` and then `curl localhost:9292/foo`.\r\nI expect a validation failed message, but instead I get `{\"name\":\"foo\"}`.\r\n\r\nI am using version 0.14.0."}}