I'm trying to generate Kotlin wrapper code for typescript definitions generated by protocol buffers. Dukat consistently generated Kotlin that does not compile when a protocol buffer message has a oneof field. After eliminating a fair amount of unrelated code, the typescript definition code which causes the error is something like the following:
I'm trying to generate Kotlin wrapper code for typescript definitions generated by protocol buffers. Dukat consistently generated Kotlin that does not compile when a protocol buffer message has a
oneof
field. After eliminating a fair amount of unrelated code, the typescript definition code which causes the error is something like the following:When Dukat processes this file, it does not generate the
ResultCase
enum at all, but tries to import it:If the
FooResponse
class is not present, but the enum and namespace are, the enum will be generated.