summaryrefslogtreecommitdiffstats
path: root/tests/inputs/deprecated
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-29 09:40:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-29 09:40:12 +0000
commit14b40ec77a4bf8605789cc3aff0eb87625510a41 (patch)
tree4064d27144d6deaabfcd96df01bd996baa8b51a0 /tests/inputs/deprecated
parentInitial commit. (diff)
downloadpython-aristaproto-upstream.tar.xz
python-aristaproto-upstream.zip
Adding upstream version 1.2+20240521.upstream/1.2+20240521upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/inputs/deprecated/deprecated.json6
-rw-r--r--tests/inputs/deprecated/deprecated.proto14
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/inputs/deprecated/deprecated.json b/tests/inputs/deprecated/deprecated.json
new file mode 100644
index 0000000..43b2b65
--- /dev/null
+++ b/tests/inputs/deprecated/deprecated.json
@@ -0,0 +1,6 @@
+{
+ "message": {
+ "value": "hello"
+ },
+ "value": 10
+}
diff --git a/tests/inputs/deprecated/deprecated.proto b/tests/inputs/deprecated/deprecated.proto
new file mode 100644
index 0000000..81d69c0
--- /dev/null
+++ b/tests/inputs/deprecated/deprecated.proto
@@ -0,0 +1,14 @@
+syntax = "proto3";
+
+package deprecated;
+
+// Some documentation about the Test message.
+message Test {
+ Message message = 1 [deprecated=true];
+ int32 value = 2;
+}
+
+message Message {
+ option deprecated = true;
+ string value = 1;
+}