{"action":"created","issue":{"url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/68","repository_url":"https://api.github.com/repos/z0mt3c/node-restify-validation","labels_url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/68/comments","events_url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/68/events","html_url":"https://github.com/z0mt3c/node-restify-validation/issues/68","id":250849927,"number":68,"title":"Can't see variables submitted via application/x-www-form-urlencoded","user":{"login":"SilentImp","id":217308,"avatar_url":"https://avatars0.githubusercontent.com/u/217308?v=4","gravatar_id":"","url":"https://api.github.com/users/SilentImp","html_url":"https://github.com/SilentImp","followers_url":"https://api.github.com/users/SilentImp/followers","following_url":"https://api.github.com/users/SilentImp/following{/other_user}","gists_url":"https://api.github.com/users/SilentImp/gists{/gist_id}","starred_url":"https://api.github.com/users/SilentImp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilentImp/subscriptions","organizations_url":"https://api.github.com/users/SilentImp/orgs","repos_url":"https://api.github.com/users/SilentImp/repos","events_url":"https://api.github.com/users/SilentImp/events{/privacy}","received_events_url":"https://api.github.com/users/SilentImp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-17T07:13:24Z","updated_at":"2018-02-28T15:59:56Z","closed_at":null,"author_association":"NONE","body":"I am keep getting \r\n409 Conflict\r\n```\r\n{\r\n\"code\": \"InvalidArgument\",\r\n\"message\": \"name (MISSING): Field is required, email (INVALID): Invalid email\"\r\n}\r\n```\r\nif I am sending data with \r\n```\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n\r\nname=Anton&email=boogagoogle.co\r\n```\r\n\r\n```\r\nimport restify from 'restify';\r\nimport restifyValidation from 'node-restify-validation';\r\nconst server = restify.createServer();\r\nserver.use(restify.plugins.queryParser());\r\nserver.use(restify.plugins.bodyParser());\r\nserver.use(restifyValidation.validationPlugin());\r\nserver.post({\r\n  url: '/',\r\n  validation: {\r\n    queries: {\r\n      name: {\r\n        isRequired: true,\r\n      },\r\n      email: {\r\n        isEmail: true\r\n      },\r\n    },\r\n  }}, async (req, res, next)=>{});\r\n```\r\nI have tried content instead of queries also.\r\nWhat gone wrong?"},"comment":{"url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/comments/369286374","html_url":"https://github.com/z0mt3c/node-restify-validation/issues/68#issuecomment-369286374","issue_url":"https://api.github.com/repos/z0mt3c/node-restify-validation/issues/68","id":369286374,"user":{"login":"gchauvet","id":156972,"avatar_url":"https://avatars2.githubusercontent.com/u/156972?v=4","gravatar_id":"","url":"https://api.github.com/users/gchauvet","html_url":"https://github.com/gchauvet","followers_url":"https://api.github.com/users/gchauvet/followers","following_url":"https://api.github.com/users/gchauvet/following{/other_user}","gists_url":"https://api.github.com/users/gchauvet/gists{/gist_id}","starred_url":"https://api.github.com/users/gchauvet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchauvet/subscriptions","organizations_url":"https://api.github.com/users/gchauvet/orgs","repos_url":"https://api.github.com/users/gchauvet/repos","events_url":"https://api.github.com/users/gchauvet/events{/privacy}","received_events_url":"https://api.github.com/users/gchauvet/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T15:59:56Z","updated_at":"2018-02-28T15:59:56Z","author_association":"COLLABORATOR","body":"Hi,\r\n\r\nEmail is invalid. Try with foo@boogagoogle.co seems to be ok. Take a look in unit tests in this project."}}
{"actor":{"display_login":"gchauvet"}}