Skip to content

Commit

Permalink
Merge pull request #119 from NikolayOskin/master
Browse files Browse the repository at this point in the history
add proto3 optional feature to protogen
  • Loading branch information
jekiapp authored May 9, 2023
2 parents 69cfe84 + f786d2d commit cc0d60d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protoc-gen-gripmock/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func main() {
log.Fatalf("error initializing plugin: %v", err)
}

plugin.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)

protos := make([]*descriptor.FileDescriptorProto, len(plugin.Files))
for index, file := range plugin.Files {
protos[index] = file.Proto
Expand Down

0 comments on commit cc0d60d

Please sign in to comment.