{"action":"created","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/241","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/241/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/241/events","html_url":"https://github.com/go-swagger/go-swagger/issues/241","id":129692196,"number":241,"title":"generate spec for embedded struct: unknown primitive ","user":{"login":"danfang","id":4534394,"avatar_url":"https://avatars.githubusercontent.com/u/4534394?v=3","gravatar_id":"","url":"https://api.github.com/users/danfang","html_url":"https://github.com/danfang","followers_url":"https://api.github.com/users/danfang/followers","following_url":"https://api.github.com/users/danfang/following{/other_user}","gists_url":"https://api.github.com/users/danfang/gists{/gist_id}","starred_url":"https://api.github.com/users/danfang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfang/subscriptions","organizations_url":"https://api.github.com/users/danfang/orgs","repos_url":"https://api.github.com/users/danfang/repos","events_url":"https://api.github.com/users/danfang/events{/privacy}","received_events_url":"https://api.github.com/users/danfang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-swagger/go-swagger/labels/Status:%20needs%20more%20info","name":"Status: needs more info","color":"fad8c7"},{"url":"https://api.github.com/repos/go-swagger/go-swagger/labels/Type:%20Bug","name":"Type: Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-29T07:40:51Z","updated_at":"2016-03-02T18:57:51Z","closed_at":null,"body":"The spec generate will often fail for me given the following definitions (for example)\r\n\r\n```go\r\n// ActionParam\r\n//\r\n// swagger:parameters actionParam\r\ntype ActionParam struct {\r\n\t// in: body\r\n\t// required: true\r\n\tBody actionParam\r\n}\r\n\r\ntype actionParam struct {\r\n\t// required: true\r\n\tFieldA string\r\n\r\n\t// required: true\r\n\tFieldB string\r\n\r\n\t// required: true\r\n\tFieldC int`\r\n}\r\n```\r\n\r\nGenerating a spec for this file will yield: `unknown primitive \"actionParam\"`\r\nChanging around all the fields, names, etc does not fix the issue.\r\n\r\nCurrently on go 1.5.2 darwin/amd64 with the latest version of swagger.\r\n"},"comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments/191371988","html_url":"https://github.com/go-swagger/go-swagger/issues/241#issuecomment-191371988","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/241","id":191371988,"user":{"login":"casualjim","id":456109,"avatar_url":"https://avatars.githubusercontent.com/u/456109?v=3","gravatar_id":"","url":"https://api.github.com/users/casualjim","html_url":"https://github.com/casualjim","followers_url":"https://api.github.com/users/casualjim/followers","following_url":"https://api.github.com/users/casualjim/following{/other_user}","gists_url":"https://api.github.com/users/casualjim/gists{/gist_id}","starred_url":"https://api.github.com/users/casualjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualjim/subscriptions","organizations_url":"https://api.github.com/users/casualjim/orgs","repos_url":"https://api.github.com/users/casualjim/repos","events_url":"https://api.github.com/users/casualjim/events{/privacy}","received_events_url":"https://api.github.com/users/casualjim/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T18:57:51Z","updated_at":"2016-03-02T18:57:51Z","body":"I think treating error as string, that worked for you right.\r\nI don't think it will fix the issue completely but it definitely fixes some cases"}}