Also improve test utils to make it easier to have multiple json examples. Co-authored-by: Christopher Chambers <chris@peanutcode.com>
16 lines
211 B
Protocol Buffer
16 lines
211 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Nothing {}
|
|
|
|
message MaybeNothing {
|
|
string sometimes = 42;
|
|
}
|
|
|
|
message Test {
|
|
oneof empty {
|
|
Nothing nothing = 1;
|
|
MaybeNothing maybe1 = 2;
|
|
MaybeNothing maybe2 = 3;
|
|
}
|
|
}
|