commit | 1c7462c1baab35e8c0ee50f4db30ee266902a21b | [log] [tgz] |
---|---|---|
author | Herbie Ong <herbie@google.com> | Fri Mar 22 17:56:55 2019 -0700 |
committer | Herbie Ong <herbie@google.com> | Mon Mar 25 23:01:49 2019 +0000 |
tree | 3099b5a35ea732d703fae022834ae32668b628c9 | |
parent | a3421952acf1d6b060d2dd251463b1946732d6bb [diff] |
encoding/jsonpb: fix encoding of empty google.protobuf.Value Description of message Value states: `Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. https://github.com/protocolbuffers/protobuf/blob/3.7.x/src/google/protobuf/struct.proto#L57-L60 Previous implementation was following C++ lib behavior. Change-Id: Id51792e2fc8cc465a05a978e63410d3b6802b522 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168901 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.