Reputation: 6923
I am trying to put an annotation on top of a generated sealed trait using scalaPb this way:
message SealedTrait {
option (scalapb.message).annotations ="@zio.json.jsonDiscriminator("strategy")';
oneof sealed_value {
A a = 1;
B b = 2;
}}
unfortunately the annotation is generated not on the trait but on SealedTraitMessage instead. Is there a way to add annotations on the sealed trait?
Upvotes: 0
Views: 93