commit | 5f47167600767f74140aab78bec4587170e59b73 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasonwzm@google.com> | Fri Aug 23 09:59:46 2019 -0700 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Fri Aug 23 18:24:35 2019 +0000 |
tree | e7966a7bb641a6fc538307c384a10f6228d2785b | |
parent | 90bca2f6a1db443b1e27f0174788a64bb98fd530 [diff] [blame] |
encoding/protobuf: make map field as not required by default in proto3 all fields are optional, thus making the map field optional as well. Change-Id: I5397adf6bfc990d6af248acef5bc4dcdf89c5cdd Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2981 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/protobuf/examples/basic/basic.proto b/encoding/protobuf/examples/basic/basic.proto index d66aab9..50696ad 100644 --- a/encoding/protobuf/examples/basic/basic.proto +++ b/encoding/protobuf/examples/basic/basic.proto
@@ -13,4 +13,6 @@ // A method must start with a capital letter. repeated string method = 2 [(cue.val) = '[...=~"^[A-Z]"]']; + + map<string, string> exmaple_map = 3; } \ No newline at end of file