{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer-cli/issues/217","repository_url":"https://api.github.com/repos/Polymer/polymer-cli","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/217/comments","events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/217/events","html_url":"https://github.com/Polymer/polymer-cli/issues/217","id":157188632,"number":217,"title":"polymer init should catch invalid 'Main element name'","user":{"login":"davidmaxwaterman","id":975698,"avatar_url":"https://avatars.githubusercontent.com/u/975698?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmaxwaterman","html_url":"https://github.com/davidmaxwaterman","followers_url":"https://api.github.com/users/davidmaxwaterman/followers","following_url":"https://api.github.com/users/davidmaxwaterman/following{/other_user}","gists_url":"https://api.github.com/users/davidmaxwaterman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmaxwaterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmaxwaterman/subscriptions","organizations_url":"https://api.github.com/users/davidmaxwaterman/orgs","repos_url":"https://api.github.com/users/davidmaxwaterman/repos","events_url":"https://api.github.com/users/davidmaxwaterman/events{/privacy}","received_events_url":"https://api.github.com/users/davidmaxwaterman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T11:41:16Z","updated_at":"2016-05-27T15:10:26Z","closed_at":null,"body":"I (mistakenly) set my 'Main element name' to a name beginning with a zero '0' and it merrily went on its way. Loading it in the browser, of course, failed :\r\n\r\n```\r\npolymer-micro.html:63 Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type '01org-scientific-calculator'. The type name is invalid.\r\n```\r\n\r\nEasy enough to spot, but it would be more use friendly to catch this earlier - especially since it catches a missing '-'."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments/222172242","html_url":"https://github.com/Polymer/polymer-cli/issues/217#issuecomment-222172242","issue_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/217","id":222172242,"user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T15:10:26Z","updated_at":"2016-05-27T15:10:26Z","body":"Ooh, good catch. I think we only check that there's a dash right now."}}
{"actor":{"display_login":"justinfagnani"}}