Skip to content

Commit 8c608c8

Browse files
committed
Follow cetanu's instructions more closely
1 parent cdfd1c3 commit 8c608c8

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

betterproto/tests/double-nested.json

-11
This file was deleted.

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/double-nested.proto renamed to betterproto/tests/nestedtwice.proto

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ syntax = "proto3";
22

33
message Test {
44
message Parent {
5-
message RootParentChild {
5+
// Test if name of enclosing message is a prefix name of enclosed message
6+
message TestParentChild {
67
string a = 1;
78
}
89
enum EnumChild{
@@ -14,10 +15,10 @@ message Test {
1415
}
1516
reserved 1;
1617
repeated Child child = 2;
17-
repeated EnumChild enum_child=3;
18-
repeated RootParentChild root_parent_child=4;
18+
repeated EnumChild enumChild=3;
19+
repeated TestParentChild rootParentChild=4;
1920
bool bar = 5;
2021
}
2122
string name = 1;
22-
Parent parent = 4;
23+
Parent parent = 2;
2324
}

0 commit comments

Comments
 (0)