{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/16183","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/16183/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/16183/comments","events_url":"https://api.github.com/repos/angular/angular/issues/16183/events","html_url":"https://github.com/angular/angular/issues/16183","id":222986605,"number":16183,"title":"Validators.email should allow null/empty values","user":{"login":"klinem","id":4847496,"avatar_url":"https://avatars3.githubusercontent.com/u/4847496?v=4","gravatar_id":"","url":"https://api.github.com/users/klinem","html_url":"https://github.com/klinem","followers_url":"https://api.github.com/users/klinem/followers","following_url":"https://api.github.com/users/klinem/following{/other_user}","gists_url":"https://api.github.com/users/klinem/gists{/gist_id}","starred_url":"https://api.github.com/users/klinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klinem/subscriptions","organizations_url":"https://api.github.com/users/klinem/orgs","repos_url":"https://api.github.com/users/klinem/repos","events_url":"https://api.github.com/users/klinem/events{/privacy}","received_events_url":"https://api.github.com/users/klinem/received_events","type":"User","site_admin":false},"labels":[{"id":393879365,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20forms","name":"comp: forms","color":"c5def5","default":false},{"id":375496864,"url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":375498203,"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/82","html_url":"https://github.com/angular/angular/milestone/82","labels_url":"https://api.github.com/repos/angular/angular/milestones/82/labels","id":3045967,"number":82,"title":"Backlog","description":"Milestone for triaged issues that have not yet been scheduled for resolution.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars3.githubusercontent.com/u/216296?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":1161,"closed_issues":70,"state":"open","created_at":"2018-01-18T16:52:20Z","updated_at":"2018-02-26T21:19:38Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2017-04-20T08:23:07Z","updated_at":"2018-02-27T11:57:11Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[x] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nControls using the email validator are invalid if no value is present.\r\n\r\n**Expected behavior**\r\nThe email validator should allow null/empty values.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nhttp://plnkr.co/edit/tsQ3C5tg3ba9xYAWHdLO?p=preview\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n<!-- Describe the motivation or the concrete use case -->\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n\r\n* **Angular version:** 4.x.x\r\n\r\n* **Browser:** all\r\n \r\n* **Language:** all\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/368850566","html_url":"https://github.com/angular/angular/issues/16183#issuecomment-368850566","issue_url":"https://api.github.com/repos/angular/angular/issues/16183","id":368850566,"user":{"login":"pawer13","id":7746697,"avatar_url":"https://avatars0.githubusercontent.com/u/7746697?v=4","gravatar_id":"","url":"https://api.github.com/users/pawer13","html_url":"https://github.com/pawer13","followers_url":"https://api.github.com/users/pawer13/followers","following_url":"https://api.github.com/users/pawer13/following{/other_user}","gists_url":"https://api.github.com/users/pawer13/gists{/gist_id}","starred_url":"https://api.github.com/users/pawer13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawer13/subscriptions","organizations_url":"https://api.github.com/users/pawer13/orgs","repos_url":"https://api.github.com/users/pawer13/repos","events_url":"https://api.github.com/users/pawer13/events{/privacy}","received_events_url":"https://api.github.com/users/pawer13/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T11:57:11Z","updated_at":"2018-02-27T11:57:11Z","author_association":"NONE","body":"I'm using the following validator:\r\n\r\n `(c: AbstractControl) => { if (!c.value) return null; return Validators.email(c);}`"}}
{"actor":{"display_login":"pawer13"}}