{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/bolt/issues/91","labels_url":"https://api.github.com/repos/firebase/bolt/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/firebase/bolt/issues/91/comments","events_url":"https://api.github.com/repos/firebase/bolt/issues/91/events","html_url":"https://github.com/firebase/bolt/issues/91","id":120545099,"number":91,"title":"Hyphen Sign not working after Compiled","user":{"login":"uqutub","id":12484707,"avatar_url":"https://avatars.githubusercontent.com/u/12484707?v=3","gravatar_id":"","url":"https://api.github.com/users/uqutub","html_url":"https://github.com/uqutub","followers_url":"https://api.github.com/users/uqutub/followers","following_url":"https://api.github.com/users/uqutub/following{/other_user}","gists_url":"https://api.github.com/users/uqutub/gists{/gist_id}","starred_url":"https://api.github.com/users/uqutub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uqutub/subscriptions","organizations_url":"https://api.github.com/users/uqutub/orgs","repos_url":"https://api.github.com/users/uqutub/repos","events_url":"https://api.github.com/users/uqutub/events{/privacy}","received_events_url":"https://api.github.com/users/uqutub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-05T10:20:27Z","updated_at":"2015-12-13T08:11:00Z","closed_at":"2015-12-13T08:11:00Z","body":"When we are compiling the bolt to json using hypen sign, example.\r\n\r\nin bolt:\r\n----------\r\ntype Test1 {\r\nvalidate() = this.team-member.length >= 10; \r\n\"team-member\": String\r\n}\r\npath /teamMember is Test1 {\r\n\tread() = true;\r\n\twrite() = true;\r\n}\r\n\r\nafter complies:\r\n-------------------\r\n{\r\n  \"rules\": {\r\n    \"teamMember\": {\r\n      \".validate\": \"newData.hasChildren(['team-member']) && newData.child('team').val() - member.length >= 10\",\r\n      \"team-member\": {\r\n        \".validate\": \"newData.isString()\"\r\n      },\r\n      \"$other\": {\r\n        \".validate\": \"false\"\r\n      },\r\n      \".read\": \"true\",\r\n      \".write\": \"true\"\r\n    }\r\n  }\r\n}"}}