Skip to content

Commit 815229b

Browse files
committed
Follow cetanu's instructions more closely
1 parent cdfd1c3 commit 815229b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

betterproto/tests/nestedtwice.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "double-nested",
3+
"parent": {
4+
"child": [{"foo": "hello"}],
5+
"enumChild": ["A"],
6+
"rootParentChild": [{"a": "hello"}],
7+
"bar": true
8+
}
9+
}

betterproto/tests/nestedtwice.proto

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
syntax = "proto3";
2+
3+
message Test {
4+
message Parent {
5+
// Test if name of enclosing message is a prefix name of enclosed message
6+
message TestParentChild {
7+
string a = 1;
8+
}
9+
enum EnumChild{
10+
A = 0;
11+
B = 1;
12+
}
13+
message Child {
14+
string foo = 1;
15+
}
16+
reserved 1;
17+
repeated Child child = 2;
18+
repeated EnumChild enumChild=3;
19+
repeated TestParentChild rootParentChild=4;
20+
bool bar = 5;
21+
}
22+
string name = 1;
23+
Parent parent = 2;
24+
}

0 commit comments

Comments
 (0)