Closed bkeane closed 2 weeks ago
When generating methods where the Result is a ResultType, and Meta is being used to declare alternative package pathing, some return type signatures in generated code do not reflect this package.
Result
ResultType
Meta
Somewhat related to https://github.com/goadesign/goa/issues/3546
package design import ( . "goa.design/goa/v3/dsl" ) var _ = Service("Repro", func() { Method("row", func() { Result(Row) HTTP(func() { GET("/") }) }) }) var Row = ResultType("application/vnd.goa.row", "Row", func() { Attributes(func() { Field(0, "id", String, "An ID field") }) Meta("struct:pkg:path", "types") })
https://github.com/goadesign/goa/pull/3553
Fixed by
As seen
When generating methods where the
Result
is aResultType
, andMeta
is being used to declare alternative package pathing, some return type signatures in generated code do not reflect this package.Somewhat related to https://github.com/goadesign/goa/issues/3546
Repro Design