{"action":"created","issue":{"url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/2","labels_url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/2/comments","events_url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/2/events","html_url":"https://github.com/jphastings/sinatra-swagger/issues/2","id":65911493,"number":2,"title":"param_validator do not cover header, formData param check","user":{"login":"rautenberg","id":71395,"avatar_url":"https://avatars.githubusercontent.com/u/71395?v=3","gravatar_id":"","url":"https://api.github.com/users/rautenberg","html_url":"https://github.com/rautenberg","followers_url":"https://api.github.com/users/rautenberg/followers","following_url":"https://api.github.com/users/rautenberg/following{/other_user}","gists_url":"https://api.github.com/users/rautenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rautenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rautenberg/subscriptions","organizations_url":"https://api.github.com/users/rautenberg/orgs","repos_url":"https://api.github.com/users/rautenberg/repos","events_url":"https://api.github.com/users/rautenberg/events{/privacy}","received_events_url":"https://api.github.com/users/rautenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T11:57:13Z","updated_at":"2015-04-02T13:38:55Z","closed_at":null,"body":"HI,\r\nI know it is a very early stage, but the project looks very promising. As we are about to document some ruby sinatra service APIs with swagger, it looks nice to have features like an automated parameter validation with it. After a first check of the gem:\r\nthe parameter types: header and formData seem to be unsupported yet. \r\n\r\n    parameters:\r\n      - name: bla\r\n        in: header\r\n\r\nmaybe an extension in param_validator.rb  could solve this:\r\n\r\n    parameter = case details['in']\r\n    when \"query\", \"header\", \"formData\"\r\n      params[param_name]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/comments/88902297","html_url":"https://github.com/jphastings/sinatra-swagger/issues/2#issuecomment-88902297","issue_url":"https://api.github.com/repos/jphastings/sinatra-swagger/issues/2","id":88902297,"user":{"login":"jphastings","id":42999,"avatar_url":"https://avatars.githubusercontent.com/u/42999?v=3","gravatar_id":"","url":"https://api.github.com/users/jphastings","html_url":"https://github.com/jphastings","followers_url":"https://api.github.com/users/jphastings/followers","following_url":"https://api.github.com/users/jphastings/following{/other_user}","gists_url":"https://api.github.com/users/jphastings/gists{/gist_id}","starred_url":"https://api.github.com/users/jphastings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jphastings/subscriptions","organizations_url":"https://api.github.com/users/jphastings/orgs","repos_url":"https://api.github.com/users/jphastings/repos","events_url":"https://api.github.com/users/jphastings/events{/privacy}","received_events_url":"https://api.github.com/users/jphastings/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T13:38:55Z","updated_at":"2015-04-02T13:38:55Z","body":"Indeed it doesn't support those yet - I'll take a look at it :) Feel free to submit a PR if you have the time!"}}