We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90d421e + 73b6a91 commit faba589Copy full SHA for faba589
1 file changed
cmd/protoc-gen-go-ttrpc/main.go
@@ -18,6 +18,7 @@ package main
18
19
import (
20
"google.golang.org/protobuf/compiler/protogen"
21
+ "google.golang.org/protobuf/types/pluginpb"
22
)
23
24
func main() {
@@ -30,6 +31,7 @@ func main() {
30
31
return nil
32
},
33
}.Run(func(gen *protogen.Plugin) error {
34
+ gen.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
35
for _, f := range gen.Files {
36
if !f.Generate {
37
continue
0 commit comments