Goa v3.24.1 現已發佈,具體更新內容包括:
Highlights
-
修復:unions + custom
struct:pkg:path現在可以生成有效代碼v3.24.0 版本引入了針對 union sum types 生成的 JSON 序列化器。當 union(或包含 union 的類型)通過
Meta("struct:pkg:path", ...)生成到單獨文件時,生成的文件可能缺少必需的encoding/json導入,導致編譯失敗。v3.24.1 通過確保 service codegen
struct:pkg:path“User types”文件包含 JSON 導入來修復此問題。
Changelog
- 已修復:生成到
struct:pkg:path文件的 union sum types 缺少encoding/json導入。 - 新增:regression test 以防止此類情況再次發生。
更新説明:https://github.com/goadesign/goa/releases/tag/v3.24.1