nats-rpc/nrpc

Support optional fields

kmpm opened this issue · 3 comments

kmpm commented

When adding a optional string name = 4; to my proto file and running protoc with --experimental_allow_proto3_optional I got the following error.
api.proto: is a proto3 file that contains optional fields, but code generator protoc-gen-nrpc hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.

Yes I know it's experimental but I thought this, optional fields, feature at least was on it's way.

Hello @mdevan @cdevienne ,

Could you please provide update on this issue?

or this one?

#69

Sorry for the long wait. I will soon work on nrpc to get protobuf up-to-date, and handle as much issues as I can.

jyoui commented

swiftechie@2981378

this can be a workaround for optional in proto3