{"action":"closed","issue":{"url":"https://api.github.com/repos/Jumpscale/go-raml/issues/226","repository_url":"https://api.github.com/repos/Jumpscale/go-raml","labels_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/226/comments","events_url":"https://api.github.com/repos/Jumpscale/go-raml/issues/226/events","html_url":"https://github.com/Jumpscale/go-raml/issues/226","id":211679037,"number":226,"title":"Inline object definition are not properly generated","user":{"login":"zaibon","id":303164,"avatar_url":"https://avatars1.githubusercontent.com/u/303164?v=3","gravatar_id":"","url":"https://api.github.com/users/zaibon","html_url":"https://github.com/zaibon","followers_url":"https://api.github.com/users/zaibon/followers","following_url":"https://api.github.com/users/zaibon/following{/other_user}","gists_url":"https://api.github.com/users/zaibon/gists{/gist_id}","starred_url":"https://api.github.com/users/zaibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaibon/subscriptions","organizations_url":"https://api.github.com/users/zaibon/orgs","repos_url":"https://api.github.com/users/zaibon/repos","events_url":"https://api.github.com/users/zaibon/events{/privacy}","received_events_url":"https://api.github.com/users/zaibon/received_events","type":"User","site_admin":false},"labels":[{"id":390059687,"url":"https://api.github.com/repos/Jumpscale/go-raml/labels/type_bug","name":"type_bug","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"iwanbk","id":977552,"avatar_url":"https://avatars2.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false},"assignees":[{"login":"iwanbk","id":977552,"avatar_url":"https://avatars2.githubusercontent.com/u/977552?v=3","gravatar_id":"","url":"https://api.github.com/users/iwanbk","html_url":"https://github.com/iwanbk","followers_url":"https://api.github.com/users/iwanbk/followers","following_url":"https://api.github.com/users/iwanbk/following{/other_user}","gists_url":"https://api.github.com/users/iwanbk/gists{/gist_id}","starred_url":"https://api.github.com/users/iwanbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwanbk/subscriptions","organizations_url":"https://api.github.com/users/iwanbk/orgs","repos_url":"https://api.github.com/users/iwanbk/repos","events_url":"https://api.github.com/users/iwanbk/events{/privacy}","received_events_url":"https://api.github.com/users/iwanbk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-03-03T12:46:45Z","updated_at":"2017-03-08T13:16:23Z","closed_at":"2017-03-08T13:16:23Z","body":"raml source \r\n```raml\r\n  Action:\r\n    properties:\r\n      name: string\r\n      code: string\r\n      state:\r\n        enum: [ new, changed, ok, scheduled, disabled, error,running ]\r\n      recurring:\r\n        type: object\r\n        properties:\r\n          period:\r\n            type: integer\r\n            description: recurring period in second\r\n          last_run:\r\n            type: integer\r\n            description: timestamp of last execution\r\n```\r\n\r\ngolang client code generated:\r\n```golang\r\ntype Action struct {\r\n\tCode      string          `json:\"code\" validate:\"nonzero\"`\r\n\tName      string          `json:\"name\" validate:\"nonzero\"`\r\n\tRecurring object          `json:\"recurring\" validate:\"nonzero\"`\r\n\tState     EnumActionState `json:\"state\" validate:\"nonzero\"`\r\n}\r\n```\r\n\r\nexpected \r\n```golang\r\ntype Action struct {\r\n\tCode      string `json:\"code\" validate:\"nonzero\"`\r\n\tName      string `json:\"name\" validate:\"nonzero\"`\r\n\tRecurring struct {\r\n\t\tPeriod  int64 `json:\"period\" validate:\"nonzero\"`\r\n\t\tLastRun int64 `json:\"last_run\" validate:\"nonzero\"`\r\n\t} `json:\"recurring\" validate:\"nonzero\"`\r\n\tState EnumActionState `json:\"state\" validate:\"nonzero\"`\r\n}\r\n```\r\n\r\npossible duplicate of : https://github.com/Jumpscale/go-raml/issues/96\r\n"}}
{"actor":{"display_login":"iwanbk"}}