Skip to content

Commit

Permalink
Fix default value of enum(int) in json_util with proto2 (protocolbuff…
Browse files Browse the repository at this point in the history
  • Loading branch information
springhack committed Aug 3, 2021
1 parent 46d8cf0 commit eb60b15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/protobuf/util/json_format.proto
Expand Up @@ -128,3 +128,13 @@ message TestExtension {
}
optional string value = 1;
}

enum EnumValue {
PROTOCOL = 0;
BUFFER = 1;
DEFAULT = 2;
}

message TestDefaultEnumValue {
optional EnumValue enum_value = 1 [default = DEFAULT];
}

0 comments on commit eb60b15

Please sign in to comment.