Support proto3 field presence#79
Conversation
1a9c410 to
8a19f17
Compare
|
@marioizquierdo can you please take a look at this when you have a chance? |
|
Hi. Thanks for your pull request. Can you document how you tested these changes? And thanks for removing the .idea files ;-) |
|
Hi @wmatveyenko, thanks for taking a look! I tested this in a private repository that uses this code generator using the When using the latest released version of twirp-ruby without this change, I got the error mentioned in the linked issue When using my branch with this change, there was no error and code generation worked as expected. There was only a small change with the move to google.golang.org/protobuf where |
|
Thanks again for your contribution! |
Since protobuf 3.14, the
optionalkeyword can be used to distinguish between an unset and default primitive value. However, this code generator does not currently support theoptionalkeyword as referenced in the following issue: #71This update is to support code generation for protobuf schemas containing the
optionalkeyword. It mirrors this change in the corresponding go code generator here: twitchtv/twirp#332This change required using the google.golang.org/protobuf module which has superseded the github.com/golang/protobuf module, hence many changes in
vendor/.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.