aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut/test.proto
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2022-12-16 16:19:13 +0300
committerbulatman <bulatman@yandex-team.com>2022-12-16 16:19:13 +0300
commitb7ee1c8a87b97e1ce35c3b9c101230e67daebac4 (patch)
treed65aa8374285ad88fad00e980f930b535110b506 /library/cpp/protobuf/json/ut/test.proto
parentdcce88f9fa7e94021bf0221b8d43b5ac747f4829 (diff)
downloadydb-b7ee1c8a87b97e1ce35c3b9c101230e67daebac4.tar.gz
Do not print missing oneof field in proto2json even MissingKeyDefault is specified
Diffstat (limited to 'library/cpp/protobuf/json/ut/test.proto')
-rw-r--r--library/cpp/protobuf/json/ut/test.proto11
1 files changed, 9 insertions, 2 deletions
diff --git a/library/cpp/protobuf/json/ut/test.proto b/library/cpp/protobuf/json/ut/test.proto
index 6bc1984373..8cd3db813a 100644
--- a/library/cpp/protobuf/json/ut/test.proto
+++ b/library/cpp/protobuf/json/ut/test.proto
@@ -122,6 +122,13 @@ message TFlatDefault {
optional string UserID = 20 [default = "some_id"];
};
+message TFlatOneOfDefault {
+ oneof Choice {
+ string ChoiceOne = 1 [default = "one"];
+ string ChoiceTwo = 2 [default = "two"];
+ }
+}
+
message TCompositeOptional {
optional TFlatOptional Part = 1;
};
@@ -206,9 +213,9 @@ message TSingleTimestamp {
}
message TExtensionField {
- extensions 100 to 199;
+ extensions 100 to 199;
}
extend TExtensionField {
optional int32 bar = 123;
-} \ No newline at end of file
+}