Skip to content
New issue

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

Support scalapb oneof sealed_value #2073

Open
johanandren opened this issue Apr 5, 2024 · 0 comments
Open

Support scalapb oneof sealed_value #2073

johanandren opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request scala-sdk-protobuf

Comments

@johanandren
Copy link
Contributor

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 johanandren added enhancement New feature or request scala-sdk-protobuf labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scala-sdk-protobuf
Projects
None yet
Development

No branches or pull requests

1 participant