Closed ash-hashtag closed 5 months ago
foo: false essentially or any message with all default values returns nothing, so a 0 length array, when passed should return the message with default values, but isn't doing so, instead returns UnexpectedEndOfBuffer
My bad it is the issue of input, the terminating null character is being skipped, it's on me
I'm trying to parse a protobuf message, generated using protoc
echo "foo:false" | protoc --encode MyMessage MyMessage.proto
nested messages with default values also fail with UnexpectedEndOfBuffer error
echo "foo:{val: false}" | protoc --encode MyNestedMessage MyMessage.proto
but 'foo: true' or 'foo: { val: true }' works fine
I've tried