REST-encoding of Any
fields omits @type
#1548
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In the branch
gce_error_details
, Showcase populates an array of error details, These details are declared asrepeated google.protobuf.Any details
here, but the JSON-encoded error response does not populate the@type
field of eachAny
-type element ofdetails
. The JSON encoding ofgoogle.protobuf.Any
should include such a field (ref).If I start the Showcase server from that branch and then I run
curl
, this is what I get (notice the lack of@type
fields):The text was updated successfully, but these errors were encountered: