{"action":"created","issue":{"url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/1","labels_url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/1/comments","events_url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/1/events","html_url":"https://github.com/srinivasiyer/koa-validation/issues/1","id":126213801,"number":1,"title":"required attribute to be an array of \"filter\" in validateBody function","user":{"login":"wmehanna","id":1326288,"avatar_url":"https://avatars.githubusercontent.com/u/1326288?v=3","gravatar_id":"","url":"https://api.github.com/users/wmehanna","html_url":"https://github.com/wmehanna","followers_url":"https://api.github.com/users/wmehanna/followers","following_url":"https://api.github.com/users/wmehanna/following{/other_user}","gists_url":"https://api.github.com/users/wmehanna/gists{/gist_id}","starred_url":"https://api.github.com/users/wmehanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmehanna/subscriptions","organizations_url":"https://api.github.com/users/wmehanna/orgs","repos_url":"https://api.github.com/users/wmehanna/repos","events_url":"https://api.github.com/users/wmehanna/events{/privacy}","received_events_url":"https://api.github.com/users/wmehanna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/srinivasiyer/koa-validation/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"srinivasiyer","id":327127,"avatar_url":"https://avatars.githubusercontent.com/u/327127?v=3","gravatar_id":"","url":"https://api.github.com/users/srinivasiyer","html_url":"https://github.com/srinivasiyer","followers_url":"https://api.github.com/users/srinivasiyer/followers","following_url":"https://api.github.com/users/srinivasiyer/following{/other_user}","gists_url":"https://api.github.com/users/srinivasiyer/gists{/gist_id}","starred_url":"https://api.github.com/users/srinivasiyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinivasiyer/subscriptions","organizations_url":"https://api.github.com/users/srinivasiyer/orgs","repos_url":"https://api.github.com/users/srinivasiyer/repos","events_url":"https://api.github.com/users/srinivasiyer/events{/privacy}","received_events_url":"https://api.github.com/users/srinivasiyer/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-01-12T16:12:18Z","updated_at":"2016-01-17T16:46:50Z","closed_at":null,"body":"I would like to know if it's possible to to force an attribute to be an array of string with a regex.\r\n\r\nWhat i'm trying to achieve is to have an attribute \"phone : []\" and each data in the array needs to be validated to have a specific format using a regex."},"comment":{"url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/comments/172348559","html_url":"https://github.com/srinivasiyer/koa-validation/issues/1#issuecomment-172348559","issue_url":"https://api.github.com/repos/srinivasiyer/koa-validation/issues/1","id":172348559,"user":{"login":"wmehanna","id":1326288,"avatar_url":"https://avatars.githubusercontent.com/u/1326288?v=3","gravatar_id":"","url":"https://api.github.com/users/wmehanna","html_url":"https://github.com/wmehanna","followers_url":"https://api.github.com/users/wmehanna/followers","following_url":"https://api.github.com/users/wmehanna/following{/other_user}","gists_url":"https://api.github.com/users/wmehanna/gists{/gist_id}","starred_url":"https://api.github.com/users/wmehanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmehanna/subscriptions","organizations_url":"https://api.github.com/users/wmehanna/orgs","repos_url":"https://api.github.com/users/wmehanna/repos","events_url":"https://api.github.com/users/wmehanna/events{/privacy}","received_events_url":"https://api.github.com/users/wmehanna/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T16:46:50Z","updated_at":"2016-01-17T16:46:50Z","body":"Simply,\n\nI want to accept a certain number of attributes and refuse if there's any\nother on a post method.\n\nExample : a post method containing this json in the body having the\nfollowing { \"name\" : \"Familly name\", \"firstName\" :\"A first Name\"} would\nreturn a 201 status.\nBut a json with the following { \"name\" : \"Familly name\", \"firstName\" :\"A\nfirst Name\", \"sex\" : \"Male\"} would be refused because the \"sex\" should not\nbe in the json.\n\nOn Sun, Jan 17, 2016 at 11:41 AM, Srinivas Iyer <notifications@github.com>\nwrote:\n\n> I did not understand the question properly. Do you mind re-explaining??\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/srinivasiyer/koa-validation/issues/1#issuecomment-172348227>\n> .\n>\n\n\n\n-- \n*Wassim Mehanna*\nConsultant T.I | WM Solutions inc.\nCellulaire : 514-576-6183\n"}}