Skip to content

Commit

Permalink
Enable FEATURE_PROTO3_OPTIONAL (#424)
Browse files Browse the repository at this point in the history
Co-authored-by: Fede Fernández <[email protected]>
  • Loading branch information
markvandertol and fedefernandez authored Oct 23, 2023
1 parent a28866d commit 1673504
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package higherkindness.mu.rpc.srcgen.proto

import cats.syntax.either._
import com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
import com.google.protobuf.ExtensionRegistry
import protocgen.{CodeGenApp, CodeGenRequest, CodeGenResponse}
import scalapb.compiler.{DescriptorImplicits, GeneratorParams}
Expand Down Expand Up @@ -52,7 +53,7 @@ object MuServiceGenerator extends CodeGenApp {
printer = new MuServicePrinter(service, muServiceParams, implicits)
} yield printer.result

CodeGenResponse.succeed(results)
CodeGenResponse.succeed(results, Set(CodeGeneratorResponse.Feature.FEATURE_PROTO3_OPTIONAL))
case Left(error) =>
CodeGenResponse.fail(error)
}
Expand Down

0 comments on commit 1673504

Please sign in to comment.