{"action":"created","issue":{"url":"https://api.github.com/repos/microstates/microstates.js/issues/50","repository_url":"https://api.github.com/repos/microstates/microstates.js","labels_url":"https://api.github.com/repos/microstates/microstates.js/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/microstates/microstates.js/issues/50/comments","events_url":"https://api.github.com/repos/microstates/microstates.js/issues/50/events","html_url":"https://github.com/microstates/microstates.js/issues/50","id":282206084,"number":50,"title":"default value of a composed simple state","user":{"login":"taras","id":74687,"avatar_url":"https://avatars2.githubusercontent.com/u/74687?v=4","gravatar_id":"","url":"https://api.github.com/users/taras","html_url":"https://github.com/taras","followers_url":"https://api.github.com/users/taras/followers","following_url":"https://api.github.com/users/taras/following{/other_user}","gists_url":"https://api.github.com/users/taras/gists{/gist_id}","starred_url":"https://api.github.com/users/taras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taras/subscriptions","organizations_url":"https://api.github.com/users/taras/orgs","repos_url":"https://api.github.com/users/taras/repos","events_url":"https://api.github.com/users/taras/events{/privacy}","received_events_url":"https://api.github.com/users/taras/received_events","type":"User","site_admin":false},"labels":[{"id":397752621,"url":"https://api.github.com/repos/microstates/microstates.js/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-12-14T19:04:36Z","updated_at":"2018-04-24T16:28:00Z","closed_at":null,"author_association":"OWNER","body":"If you define a microstate like \r\n\r\n```js\r\nclass Products {\r\n  filter = MS.String;\r\n}\r\n```\r\n\r\nIt would be helpful to be able to specify a default value for the `filter` when one is not specified. This not currently possible."},"comment":{"url":"https://api.github.com/repos/microstates/microstates.js/issues/comments/383995957","html_url":"https://github.com/microstates/microstates.js/issues/50#issuecomment-383995957","issue_url":"https://api.github.com/repos/microstates/microstates.js/issues/50","id":383995957,"user":{"login":"cowboyd","id":4205,"avatar_url":"https://avatars2.githubusercontent.com/u/4205?v=4","gravatar_id":"","url":"https://api.github.com/users/cowboyd","html_url":"https://github.com/cowboyd","followers_url":"https://api.github.com/users/cowboyd/followers","following_url":"https://api.github.com/users/cowboyd/following{/other_user}","gists_url":"https://api.github.com/users/cowboyd/gists{/gist_id}","starred_url":"https://api.github.com/users/cowboyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowboyd/subscriptions","organizations_url":"https://api.github.com/users/cowboyd/orgs","repos_url":"https://api.github.com/users/cowboyd/repos","events_url":"https://api.github.com/users/cowboyd/events{/privacy}","received_events_url":"https://api.github.com/users/cowboyd/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T16:28:00Z","updated_at":"2018-04-24T16:28:00Z","author_association":"OWNER","body":"alternatively:\r\n\r\n```js\r\nclass Products {\r\n  @default('abc')\r\n  filter = String;\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"cowboyd"}}