{"action":"created","issue":{"url":"https://api.github.com/repos/goadesign/goa/issues/1603","repository_url":"https://api.github.com/repos/goadesign/goa","labels_url":"https://api.github.com/repos/goadesign/goa/issues/1603/labels{/name}","comments_url":"https://api.github.com/repos/goadesign/goa/issues/1603/comments","events_url":"https://api.github.com/repos/goadesign/goa/issues/1603/events","html_url":"https://github.com/goadesign/goa/issues/1603","id":306058231,"number":1603,"title":"Goa gen v2 Payload Extend has no effect","user":{"login":"dotLou","id":2522036,"avatar_url":"https://avatars3.githubusercontent.com/u/2522036?v=4","gravatar_id":"","url":"https://api.github.com/users/dotLou","html_url":"https://github.com/dotLou","followers_url":"https://api.github.com/users/dotLou/followers","following_url":"https://api.github.com/users/dotLou/following{/other_user}","gists_url":"https://api.github.com/users/dotLou/gists{/gist_id}","starred_url":"https://api.github.com/users/dotLou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotLou/subscriptions","organizations_url":"https://api.github.com/users/dotLou/orgs","repos_url":"https://api.github.com/users/dotLou/repos","events_url":"https://api.github.com/users/dotLou/events{/privacy}","received_events_url":"https://api.github.com/users/dotLou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T19:57:48Z","updated_at":"2018-03-16T20:03:56Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nPayload is extended with attributes from the Payload specified in `Extend()`\r\n## Actual Behavior\r\nPayload is not extended, compilation fails if expecting those items in the payload\r\n\r\n## Steps to Reproduce the Problem (including complete and simple design if relevant)\r\n\r\n`goa gen testing/design`\r\n\r\n`design.go`:\r\n```go\r\npackage design\r\n\r\nimport . \"goa.design/goa/http/design\"\r\nimport . \"goa.design/goa/http/dsl\"\r\n\r\n// API describes the global properties of the API server.\r\nvar _ = API(\"collections\", func() {\r\n\tTitle(\"collections Service\")\r\n\tDescription(\"HTTP service for the collections resource\")\r\n})\r\n\r\n// PayloadA is the payload to be used to extend PayloadB\r\nvar PayloadA = Type(\"PayloadA\", func() {\r\n\tAttribute(\"a\", String)\r\n})\r\n\r\n// PayloadB should be extended by the attributes of PayloadA\r\n// If you comment out the \"a\" attribute in PayloadB, `goa gen` does not work\r\nvar PayloadB = Type(\"PayloadB\", func() {\r\n\tAttribute(\"b\", String)\r\n\t// Attribute(\"a\", String)\r\n\tExtend(PayloadA)\r\n})\r\n\r\nvar _ = Service(\"service\", func() {\r\n\tMethod(\"do\", func() {\r\n\t\tPayload(PayloadB)\r\n\t\tResult(Int)\r\n\t\tHTTP(func() {\r\n\t\t\tGET(\"/service/{a}/{b}\")\r\n\t\t\tResponse(StatusOK)\r\n\t\t})\r\n\t})\r\n})\r\n\r\n```\r\n\r\n## Specifications\r\n\r\n  - goa Version: v2, latest branch (specifically 8ae8493dac8f54248c5d540a15ea694944ca7144)\r\n  - Platform (Linux/Windows etc.): Mac\r\n  - go version go1.10 darwin/amd64\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/goadesign/goa/issues/comments/373829518","html_url":"https://github.com/goadesign/goa/issues/1603#issuecomment-373829518","issue_url":"https://api.github.com/repos/goadesign/goa/issues/1603","id":373829518,"user":{"login":"raphael","id":36822,"avatar_url":"https://avatars0.githubusercontent.com/u/36822?v=4","gravatar_id":"","url":"https://api.github.com/users/raphael","html_url":"https://github.com/raphael","followers_url":"https://api.github.com/users/raphael/followers","following_url":"https://api.github.com/users/raphael/following{/other_user}","gists_url":"https://api.github.com/users/raphael/gists{/gist_id}","starred_url":"https://api.github.com/users/raphael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphael/subscriptions","organizations_url":"https://api.github.com/users/raphael/orgs","repos_url":"https://api.github.com/users/raphael/repos","events_url":"https://api.github.com/users/raphael/events{/privacy}","received_events_url":"https://api.github.com/users/raphael/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T20:03:56Z","updated_at":"2018-03-16T20:03:56Z","author_association":"OWNER","body":"Interesting, I'm getting this error when trying to generate from this design:\r\n```\r\nservice \"service\" HTTP endpoint \"do\": Param \"a\" is not found in Payload.\r\n```\r\nwhich is also a bug but seems different?"}}
{"actor":{"display_login":"raphael"}}