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
If a field has the default value in the protocol buffer, it will be omitted in the JSON-encoded data by default to save space.
You can change this behavior by providing the -emit-defaults flag, in which case default values will be explicitly included in the output (including for enum values).
grpcurl version: 1.1.0
proto3 is used
Case:
enum Status {
ACTIVE = 0;
INACTIVE = 1;
}
if Status is INACTIVE, return:
{
"status": "INACTIVE"
}
if Status is ACTIVE, return: {}
which should return
{
"status": "ACTIVE"
}
The text was updated successfully, but these errors were encountered: