{"action":"created","issue":{"url":"https://api.github.com/repos/gophercloud/gophercloud/issues/1250","repository_url":"https://api.github.com/repos/gophercloud/gophercloud","labels_url":"https://api.github.com/repos/gophercloud/gophercloud/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/gophercloud/gophercloud/issues/1250/comments","events_url":"https://api.github.com/repos/gophercloud/gophercloud/issues/1250/events","html_url":"https://github.com/gophercloud/gophercloud/pull/1250","id":364701821,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODI1NzEy","number":1250,"title":"[WIP] Fixed where creating profile and policies will send spec \"version\" in…","user":{"login":"JackKuei","id":37349764,"node_id":"MDQ6VXNlcjM3MzQ5NzY0","avatar_url":"https://avatars0.githubusercontent.com/u/37349764?v=4","gravatar_id":"","url":"https://api.github.com/users/JackKuei","html_url":"https://github.com/JackKuei","followers_url":"https://api.github.com/users/JackKuei/followers","following_url":"https://api.github.com/users/JackKuei/following{/other_user}","gists_url":"https://api.github.com/users/JackKuei/gists{/gist_id}","starred_url":"https://api.github.com/users/JackKuei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackKuei/subscriptions","organizations_url":"https://api.github.com/users/JackKuei/orgs","repos_url":"https://api.github.com/users/JackKuei/repos","events_url":"https://api.github.com/users/JackKuei/events{/privacy}","received_events_url":"https://api.github.com/users/JackKuei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-28T00:47:00Z","updated_at":"2018-09-28T18:48:29Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/gophercloud/gophercloud/pulls/1250","html_url":"https://github.com/gophercloud/gophercloud/pull/1250","diff_url":"https://github.com/gophercloud/gophercloud/pull/1250.diff","patch_url":"https://github.com/gophercloud/gophercloud/pull/1250.patch"},"body":"Prior to a PR being reviewed, there needs to be a Github issue that the PR\r\naddresses. Replace the brackets and text below with that issue number.\r\n\r\nFor #[1249 [Bug: Senlin profile create is missing \"version\" field for spec when sending to api backend]](https://github.com/gophercloud/gophercloud/issues/1249)\r\nRef #[823 [Add support for Senlin clustering]](https://github.com/gophercloud/gophercloud/issues/823)"},"comment":{"url":"https://api.github.com/repos/gophercloud/gophercloud/issues/comments/425531280","html_url":"https://github.com/gophercloud/gophercloud/pull/1250#issuecomment-425531280","issue_url":"https://api.github.com/repos/gophercloud/gophercloud/issues/1250","id":425531280,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTUzMTI4MA==","user":{"login":"JackKuei","id":37349764,"node_id":"MDQ6VXNlcjM3MzQ5NzY0","avatar_url":"https://avatars0.githubusercontent.com/u/37349764?v=4","gravatar_id":"","url":"https://api.github.com/users/JackKuei","html_url":"https://github.com/JackKuei","followers_url":"https://api.github.com/users/JackKuei/followers","following_url":"https://api.github.com/users/JackKuei/following{/other_user}","gists_url":"https://api.github.com/users/JackKuei/gists{/gist_id}","starred_url":"https://api.github.com/users/JackKuei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackKuei/subscriptions","organizations_url":"https://api.github.com/users/JackKuei/orgs","repos_url":"https://api.github.com/users/JackKuei/repos","events_url":"https://api.github.com/users/JackKuei/events{/privacy}","received_events_url":"https://api.github.com/users/JackKuei/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T18:48:29Z","updated_at":"2018-09-28T18:48:29Z","author_association":"CONTRIBUTOR","body":"@jtopjian here is the code that failed to trigger during marshalling\r\n```\r\n// MarshalJSON marshals the spec properties\r\nfunc (r *Spec) MarshalJSON() ([]byte, error) {\r\n\tspec := struct {\r\n\t\tType       string                 `json:\"type\"`\r\n\t\tVersion    string                 `json:\"version\"`\r\n\t\tProperties map[string]interface{} `json:\"properties\"`\r\n\t}{\r\n\t\tType:       r.Type,\r\n\t\tVersion:    r.Version,\r\n\t\tProperties: r.Properties,\r\n\t}\r\n\treturn json.Marshal(spec)\r\n}\r\n```"}}
{"actor":{"display_login":"JackKuei"}}