ScalaPB icon indicating copy to clipboard operation
ScalaPB copied to clipboard

sealed oneof option/annotation instead of special name

Open dsilvasc opened this issue 6 years ago • 6 comments

Sealed oneofs are only generated when the oneof name is sealed_value. For people with existing schemas (or schemas shared across multi-language teams where others might prefer another name), would it be possible to allow annotating the message or the oneof?

Maybe something like option (scalapb.message).sealed_oneof = true?

dsilvasc avatar May 14 '19 01:05 dsilvasc