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
I did more research on this issue, the Proto3 spec, and closed issues. I see now that only jsonpb package is supported, and modifying the EmitDefaults option init shows the defaults.
In addition, for those using the grpc-gateway project, I've opened an issue for tracking of their DefaultEmpty behavior there: grpc-ecosystem/grpc-gateway#233
Unintended behavior:
false
booleans are always omitted0
are omitted (and it's unreasonable to tell api consumers that "if it's gone assume0
value)Source: https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go#L1788
The text was updated successfully, but these errors were encountered: