You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The pb file generated by kratos proto client has the omitempty tag, which causes the null value and default value to be ignored during serialization. How can I generate the pb file without this tag?
kratos-ci-bot
changed the title
[Question] kratos生成的pb文件带有omitempty标签
[Question] kratos generation pb file with omitempty tag
Sep 24, 2024
This has nothing to do with kratos, it is the default behavior after compiling with protoc-gen-go, and it should not be removed. `protojson supports keeping null values.
kratos proto client
生成的pb文件带有omitempty标签导致序列化的时候会忽略空值和默认值,怎么样可以在生成pb文件的时候不带这个标签The text was updated successfully, but these errors were encountered: