Open vgarvardt opened 3 years ago
haven't run into this before. let me have a look and get back to you later.
👋 @vgarvardt getting around the error itself is simple. But that doesn't mean the output code will have full support of the optional semantic in proto3. So I don't think it's the right thing to do.
The current situation is that the support of proto2 optional/require is not properly implemented in this generator. To achieve the real support of optional field in proto3, might as well solve the proto2 problem at the same time. So there will be quite a bit of work needs to be done.
I'm still very interested in this and may spend some time helping with the implementation, but I'll need your guidance. Maybe you can describe the job that needs to be done for a proper implementation, or at least the first steps so I could try to work on it and let you review PRs if you do not have to work on it.
@vgarvardt I just let optional
enable to generate, but not implements, refer: https://github.com/yinheli/protoc-gen-grpc-gateway-ts/commit/bb766c2d072ebc800aaac902add2c330a27bca72
yup, what @yinheli suggested will unblock you for now. @vgarvardt. I was gonna start working on it but got distracted to other priorities. Free free to start thinking about it before the implementation. I'll guide you through
any updates? It will make usable this generator. It is really sucks to use grpc-web instead....
any updates?
any updates?
As of protobuf 3.15
optional
fields are available, but they are not supported by the generator:test/optional/v1/has_optional_field.proto
contents: