{"action":"created","issue":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/200","repository_url":"https://api.github.com/repos/ctavan/express-validator","labels_url":"https://api.github.com/repos/ctavan/express-validator/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ctavan/express-validator/issues/200/comments","events_url":"https://api.github.com/repos/ctavan/express-validator/issues/200/events","html_url":"https://github.com/ctavan/express-validator/issues/200","id":128539949,"number":200,"title":"\"Togather\" validator for multiple params","user":{"login":"JaniszM","id":14543438,"avatar_url":"https://avatars.githubusercontent.com/u/14543438?v=3","gravatar_id":"","url":"https://api.github.com/users/JaniszM","html_url":"https://github.com/JaniszM","followers_url":"https://api.github.com/users/JaniszM/followers","following_url":"https://api.github.com/users/JaniszM/following{/other_user}","gists_url":"https://api.github.com/users/JaniszM/gists{/gist_id}","starred_url":"https://api.github.com/users/JaniszM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaniszM/subscriptions","organizations_url":"https://api.github.com/users/JaniszM/orgs","repos_url":"https://api.github.com/users/JaniszM/repos","events_url":"https://api.github.com/users/JaniszM/events{/privacy}","received_events_url":"https://api.github.com/users/JaniszM/received_events","type":"User","site_admin":false},"labels":[{"id":203759256,"url":"https://api.github.com/repos/ctavan/express-validator/labels/question","name":"question","color":"5319e7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-01-25T13:43:41Z","updated_at":"2016-12-17T17:35:25Z","closed_at":null,"body":"Is it possible to check somehow the group of params? E.g.: I have three query params on input: one, two, three, and I want to check if one of them is present. Im using schema validation.\n\nIt looks like a problem because schemas are referencing always to the specific fields :~\n\n```\n    'limit': {\n        optional: true,\n        isInt: {\n            errorMessage: 'Invalid argument type.'\n        }\n    },\n    'offset': {\n        optional: true,\n        isInt: {\n            errorMessage: 'Invalid argument type.'\n        }\n    }\n```\n"},"comment":{"url":"https://api.github.com/repos/ctavan/express-validator/issues/comments/267775556","html_url":"https://github.com/ctavan/express-validator/issues/200#issuecomment-267775556","issue_url":"https://api.github.com/repos/ctavan/express-validator/issues/200","id":267775556,"user":{"login":"gustavohenke","id":826553,"avatar_url":"https://avatars.githubusercontent.com/u/826553?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavohenke","html_url":"https://github.com/gustavohenke","followers_url":"https://api.github.com/users/gustavohenke/followers","following_url":"https://api.github.com/users/gustavohenke/following{/other_user}","gists_url":"https://api.github.com/users/gustavohenke/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavohenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavohenke/subscriptions","organizations_url":"https://api.github.com/users/gustavohenke/orgs","repos_url":"https://api.github.com/users/gustavohenke/repos","events_url":"https://api.github.com/users/gustavohenke/events{/privacy}","received_events_url":"https://api.github.com/users/gustavohenke/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T17:35:25Z","updated_at":"2016-12-17T17:35:25Z","body":"@agauniyal you can already do this.\r\nThese 3 fields are always required, and make the 4th one optional. If one of these 3 fields are not sent, then the request should fail."}}
{"actor":{"display_login":"gustavohenke"}}