summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2018-12-12 06:34:11 +0000
committerBo Yang <teboring@google.com>2018-12-12 06:34:11 +0000
commitb39dbb9d4010f6b6e11a5100a73e03b601cf72b9 (patch)
treef94970fb0f0db5b1a456290de59b9a60ca3a0a6a /tools
parent13c59cb051c4deee5367f9c5fc7b5d07363496a0 (diff)
Add support for encoding Any in json
Diffstat (limited to 'tools')
-rw-r--r--tools/dump_cinit.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dump_cinit.lua b/tools/dump_cinit.lua
index 93ee12e..34d9dd1 100644
--- a/tools/dump_cinit.lua
+++ b/tools/dump_cinit.lua
@@ -350,6 +350,7 @@ end
local function well_known_type(m)
local type_map = {}
+ type_map["google.protobuf.Any"] = "UPB_WELLKNOWN_ANY"
type_map["google.protobuf.Duration"] = "UPB_WELLKNOWN_DURATION"
type_map["google.protobuf.Timestamp"] = "UPB_WELLKNOWN_TIMESTAMP"
type_map["google.protobuf.Value"] = "UPB_WELLKNOWN_VALUE"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback