qtprotobuf icon indicating copy to clipboard operation
qtprotobuf copied to clipboard

Support enum field for Oneof

Open tnodir opened this issue 3 years ago • 1 comments

Problem description Generator doesn't create enum for Oneof cases.

Suggestion/solution Generator should create enum field for Oneof cases. And (de)serializer should fill the field.

Additional context See the docs, how standard CPP generator supports it.

tnodir avatar Dec 24 '21 12:12 tnodir

Am I reading correctly in that there currently no way of knowing which variant of a oneof is populated?

Eijebong avatar Feb 05 '22 22:02 Eijebong