Closed yyfyfyang closed 1 month ago
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?
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.
If you forcefully nested non proto structures outside the proto structure yourself, please refer to #1952
kratos proto client
生成的pb文件带有omitempty标签导致序列化的时候会忽略空值和默认值,怎么样可以在生成pb文件的时候不带这个标签