{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/bolt/issues/81","labels_url":"https://api.github.com/repos/firebase/bolt/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/firebase/bolt/issues/81/comments","events_url":"https://api.github.com/repos/firebase/bolt/issues/81/events","html_url":"https://github.com/firebase/bolt/issues/81","id":118053719,"number":81,"title":"Error on hyphen in type property","user":{"login":"ziaukhan","id":545458,"avatar_url":"https://avatars.githubusercontent.com/u/545458?v=3","gravatar_id":"","url":"https://api.github.com/users/ziaukhan","html_url":"https://github.com/ziaukhan","followers_url":"https://api.github.com/users/ziaukhan/followers","following_url":"https://api.github.com/users/ziaukhan/following{/other_user}","gists_url":"https://api.github.com/users/ziaukhan/gists{/gist_id}","starred_url":"https://api.github.com/users/ziaukhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziaukhan/subscriptions","organizations_url":"https://api.github.com/users/ziaukhan/orgs","repos_url":"https://api.github.com/users/ziaukhan/repos","events_url":"https://api.github.com/users/ziaukhan/events{/privacy}","received_events_url":"https://api.github.com/users/ziaukhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T14:36:32Z","updated_at":"2015-11-20T23:27:38Z","closed_at":null,"body":"The following file is giving an error because of hyphen in \"data-created\", but it is allowed in rules syntax:\r\n\r\ntype User {\r\n  email: String,\r\n  firstName: String,\r\n  lastName: String,\r\n  data-created: Number,\r\n  status: Number\r\n}\r\n\r\nisCurrentTime(timestamp) = timestamp == now;\r\n\r\nisAnyAuthUser() = auth != null;\r\n\r\nisAuthUser(userID) = auth.uid == userID;\r\n\r\npath /users {\r\n  read() = isAnyAuthUser();\r\n}\r\n\r\npath /users/$user is User {\r\n  write() = isCurrentTime(this.dateCreated) && isAuthUser($user);\r\n}"},"comment":{"url":"https://api.github.com/repos/firebase/bolt/issues/comments/158555625","html_url":"https://github.com/firebase/bolt/issues/81#issuecomment-158555625","issue_url":"https://api.github.com/repos/firebase/bolt/issues/81","id":158555625,"user":{"login":"mckoss","id":82750,"avatar_url":"https://avatars.githubusercontent.com/u/82750?v=3","gravatar_id":"","url":"https://api.github.com/users/mckoss","html_url":"https://github.com/mckoss","followers_url":"https://api.github.com/users/mckoss/followers","following_url":"https://api.github.com/users/mckoss/following{/other_user}","gists_url":"https://api.github.com/users/mckoss/gists{/gist_id}","starred_url":"https://api.github.com/users/mckoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mckoss/subscriptions","organizations_url":"https://api.github.com/users/mckoss/orgs","repos_url":"https://api.github.com/users/mckoss/repos","events_url":"https://api.github.com/users/mckoss/events{/privacy}","received_events_url":"https://api.github.com/users/mckoss/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T23:27:38Z","updated_at":"2015-11-20T23:27:38Z","body":"See issue #38."}}