Hello! I'm using ktx serialization with Protobuf format to operate with another service which uses protoc (Java generated classes).
I've just discovered that the notion of "default value" is different on those 2 tools:
• on Java and as documented by the
official protobuf documentation, a default value is dependent of the type, for example Int => 0
• on Kotlin, it's depending of the language default value
This is a nightmare to be easily interoperable. I don't want to use special Kotlin default value, but I don't want Ktx to crash because I didn't specify a
= 0
somewhere.
Am I missing something?
(I've a ton of nullable fields in my models, so I can't set encodeDefault to true)