Closed smessier closed 5 days ago
Hello Scott!! Sorry it took so long to get to this. I have a potential fix on this branch: fix/deep_user_type_extend_views
(https://github.com/goadesign/goa/pull/3608). Are you able to test the fix?
Merged the PR, issue should be fixed.
See file attachment for API that demonstrates the issue. foo.zip
We have had to change from using Type to ResultType for media with multiple views since Type no longer allows views after goa v3.17 Changing to ResultType exposes a weird issue having to do with nesting and extending ResultType. when top-level media includes a field that has an extended ResultType then the deepest ResultType fails to codegen properly in "foo/gen/http/bar/client/encode_decode.go" and "foo/gen/http/bar/server/encode_decode.go". the bug is the same in both cases:
Note that this bug appears to have been present for many previous versions but is only seen when forced to change from using Type to ResultType. Not sure if having multiple views are required to reproduce but our use case has them.
Example of codegen: