Skip to content

Commit cc0d60d

Browse files
authored
Merge pull request tokopedia#119 from NikolayOskin/master
add proto3 optional feature to protogen
2 parents 69cfe84 + f786d2d commit cc0d60d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

protoc-gen-gripmock/generator.go

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func main() {
3838
log.Fatalf("error initializing plugin: %v", err)
3939
}
4040

41+
plugin.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
42+
4143
protos := make([]*descriptor.FileDescriptorProto, len(plugin.Files))
4244
for index, file := range plugin.Files {
4345
protos[index] = file.Proto

0 commit comments

Comments
 (0)