{"action":"created","issue":{"url":"https://api.github.com/repos/typestack/routing-controllers/issues/348","repository_url":"https://api.github.com/repos/typestack/routing-controllers","labels_url":"https://api.github.com/repos/typestack/routing-controllers/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/typestack/routing-controllers/issues/348/comments","events_url":"https://api.github.com/repos/typestack/routing-controllers/issues/348/events","html_url":"https://github.com/typestack/routing-controllers/issues/348","id":283571226,"number":348,"title":"@Param default validation","user":{"login":"jsmonkey","id":11045284,"avatar_url":"https://avatars3.githubusercontent.com/u/11045284?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmonkey","html_url":"https://github.com/jsmonkey","followers_url":"https://api.github.com/users/jsmonkey/followers","following_url":"https://api.github.com/users/jsmonkey/following{/other_user}","gists_url":"https://api.github.com/users/jsmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmonkey/subscriptions","organizations_url":"https://api.github.com/users/jsmonkey/orgs","repos_url":"https://api.github.com/users/jsmonkey/repos","events_url":"https://api.github.com/users/jsmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/jsmonkey/received_events","type":"User","site_admin":false},"labels":[{"id":267047619,"url":"https://api.github.com/repos/typestack/routing-controllers/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-20T13:59:20Z","updated_at":"2017-12-21T16:05:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI found that `This technique works not only with @Body but also with @Param, @QueryParam, @BodyParam and other decorators.` in this validation [docs article](https://github.com/typestack/routing-controllers#auto-validating-action-params).\r\n\r\nBut by default `@Param('id') id: number` is not validated and accepts `NaN` as value in case of invalid `id`.\r\nThere is no validate option for `@Param` decorator, which mentioned in the docs.\r\n\r\nSo mb you need a fix to be with your library docs.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/typestack/routing-controllers/issues/comments/353389027","html_url":"https://github.com/typestack/routing-controllers/issues/348#issuecomment-353389027","issue_url":"https://api.github.com/repos/typestack/routing-controllers/issues/348","id":353389027,"user":{"login":"jsmonkey","id":11045284,"avatar_url":"https://avatars3.githubusercontent.com/u/11045284?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmonkey","html_url":"https://github.com/jsmonkey","followers_url":"https://api.github.com/users/jsmonkey/followers","following_url":"https://api.github.com/users/jsmonkey/following{/other_user}","gists_url":"https://api.github.com/users/jsmonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmonkey/subscriptions","organizations_url":"https://api.github.com/users/jsmonkey/orgs","repos_url":"https://api.github.com/users/jsmonkey/repos","events_url":"https://api.github.com/users/jsmonkey/events{/privacy}","received_events_url":"https://api.github.com/users/jsmonkey/received_events","type":"User","site_admin":false},"created_at":"2017-12-21T16:05:51Z","updated_at":"2017-12-21T16:05:51Z","author_association":"NONE","body":"Merge request is in opened state since 31 Aug. When will it be released?"}}
{"actor":{"display_login":"jsmonkey"}}