We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A proto definition
message UnlockEvent { optional string eventId = 1; }
compiles to
final case class UnlockEvent(@_root_.pbdirect.pbIndex(1) eventId: _root_.java.lang.String)
whereas I would expect it to be
final case class UnlockEvent(@_root_.pbdirect.pbIndex(1) eventId: _root_.scala.Option[_root_.java.lang.String])
Is there an option for this (haven't found anything in the docs)? It works correctly if using another message BTW:
message EventId { string value = 1; } message UnlockEvent { optional EventId eventId = 1; }
will result in Option[EventId] correctly.
Option[EventId]
Using addSbtPlugin("io.higherkindness" % "sbt-mu-srcgen" % "0.26.0"). Thanks!
addSbtPlugin("io.higherkindness" % "sbt-mu-srcgen" % "0.26.0")
The text was updated successfully, but these errors were encountered:
hi @randm-ch,
sbt-mu-srcgen uses skeumorph by default for the source generation. There's an issue related to this:
sbt-mu-srcgen
You can use avrohugger for the code generation through the SBT setting key muSrcGenAvroGeneratorType. Take a look to the documentation.
muSrcGenAvroGeneratorType
If I'm not wrong, you shouldn't have that problem with avrohugger.
Sorry, something went wrong.
Thanks for the explaination and the workaround. Closing the issue.
No branches or pull requests
A proto definition
compiles to
whereas I would expect it to be
Is there an option for this (haven't found anything in the docs)? It works correctly if using another message BTW:
will result in
Option[EventId]
correctly.Using
addSbtPlugin("io.higherkindness" % "sbt-mu-srcgen" % "0.26.0")
. Thanks!The text was updated successfully, but these errors were encountered: