diff options
Diffstat (limited to 'tests/inputs/nested')
-rw-r--r-- | tests/inputs/nested/nested.json | 7 | ||||
-rw-r--r-- | tests/inputs/nested/nested.proto | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/inputs/nested/nested.json b/tests/inputs/nested/nested.json new file mode 100644 index 0000000..f460cad --- /dev/null +++ b/tests/inputs/nested/nested.json @@ -0,0 +1,7 @@ +{ + "nested": { + "count": 150 + }, + "sibling": {}, + "msg": "THIS" +} diff --git a/tests/inputs/nested/nested.proto b/tests/inputs/nested/nested.proto new file mode 100644 index 0000000..619c721 --- /dev/null +++ b/tests/inputs/nested/nested.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package nested; + +// A test message with a nested message inside of it. +message Test { + // This is the nested type. + message Nested { + // Stores a simple counter. + int32 count = 1; + } + // This is the nested enum. + enum Msg { + NONE = 0; + THIS = 1; + } + + Nested nested = 1; + Sibling sibling = 2; + Sibling sibling2 = 3; + Msg msg = 4; +} + +message Sibling { + int32 foo = 1; +}
\ No newline at end of file |