We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfd1c3 commit 815229bCopy full SHA for 815229b
betterproto/tests/nestedtwice.json
@@ -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
@@ -0,0 +1,24 @@
+syntax = "proto3";
+
+message Test {
+ message Parent {
+ // Test if name of enclosing message is a prefix name of enclosed message
+ message TestParentChild {
+ string a = 1;
+ 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