kalix-jvm-sdk icon indicating copy to clipboard operation
kalix-jvm-sdk copied to clipboard

Support scalapb oneof sealed_value

Open johanandren opened this issue 1 year ago • 0 comments

ScalaPB has a special quirky feature which is that a protobuf oneof with the name sealed_[name] will generate a sealed ADT (docs: https://scalapb.github.io/docs/sealed-oneofs/) however that generates types that the SDK serialization logic AnySupport doesn't expect.

Doesn't seem very complicated to support, the core of the problem is that the GeneratedMessageCompanion cannot be found the usual way for such generated sealed Scala ADTs.

johanandren avatar Apr 05 '24 16:04 johanandren