aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/protos
diff options
context:
space:
mode:
authorGravatar alien <the-alien@live.ru>2016-03-17 15:19:04 +0300
committerGravatar alien <the-alien@live.ru>2016-03-18 22:59:50 +0300
commit0d32ab37fa94134427478d6776108e7cdb3e5e15 (patch)
treeb0f5e3c9f9bf9097f739b98d0503d659abe974a9 /csharp/protos
parent5e933847cc9e7826f1a9ee8b3dc1df4960b1ea5d (diff)
csharp: add support for the json_name option
Conflicts: csharp/src/Google.Protobuf/JsonFormatter.cs
Diffstat (limited to 'csharp/protos')
-rw-r--r--csharp/protos/unittest_issues.proto9
1 files changed, 8 insertions, 1 deletions
diff --git a/csharp/protos/unittest_issues.proto b/csharp/protos/unittest_issues.proto
index 989b3dc4..f120516c 100644
--- a/csharp/protos/unittest_issues.proto
+++ b/csharp/protos/unittest_issues.proto
@@ -116,4 +116,11 @@ message TestJsonFieldOrdering {
string o2_string = 3;
}
-} \ No newline at end of file
+}
+
+message TestJsonName {
+ // json_name field options are not properly handled during deserialization
+ string name = 1;
+ string description = 2 [json_name = "desc"];
+ string guid = 3 [json_name = "exid"];
+}