8000 Add a minimal repro for #312 (#340) · Gobot1234/python-betterproto@ac96d82 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac96d82

Browse files
authored
Add a minimal repro for danielgtaylor#312 (danielgtaylor#340)
1 parent e7133ad commit ac96d82

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tests/inputs/nested/nested.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"nested": {
33
"count": 150
44
},
5-
"sibling": {}
5+
"sibling": {},
6+
"msg": "THIS"
67
}

tests/inputs/nested/nested.proto

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ package nested;
66
message Test {
77
// This is the nested type.
88
message Nested {
9-
// Stores a simple counter.
10-
int32 count = 1;
9+
// Stores a simple counter.
10+
int32 count = 1;
11+
}
12+
// This is the nested enum.
13+
enum Msg {
14+
NONE = 0;
15+
THIS = 1;
1116
}
1217

1318
Nested nested = 1;
1419
Sibling sibling = 2;
1520
Sibling sibling2 = 3;
21+
Msg msg = 4;
1622
}
1723

1824
message Sibling {

0 commit comments

Comments
 (0)
0