jmillner_
07/20/2023, 10:30 AMproto3
formatted Schemas through kotlinx-serialization-protobuf? I have been able to get a proto2
version via the experimental ProtoBufSchemaGeneratorjmillner_
07/20/2023, 10:42 AMjmillner_
07/20/2023, 10:42 AMglureau
07/20/2023, 10:42 AMjmillner_
07/20/2023, 10:43 AMjmillner_
07/20/2023, 10:45 AMjmillner_
07/20/2023, 9:59 PMjmillner_
07/20/2023, 10:01 PMglureau
07/21/2023, 7:02 AMdata class Foo(foo: Int) { data class Bar(bar:Int) }In this configuration, the protobuf file will contain
message Foo { int32 foo = 1; }
message Bar { int32 bar = 1; }Now let's say there is another kotlin file:
data class Foo2(foo: Int) { data class Bar(baz:Int) }Here in Kotlin we will have 2 different nested classes: Foo.Bar and Foo2.Bar, the qualified names are different, but on the protobuf, both will be named "Bar". And since there's no namespacing for each message, I think it'll create a conflict at some point. What I'd like is to get a nested message on the protobuf file, to avoid such conflicts.
message Foo { int32 foo = 1; message Bar { int32 bar = 1; } }
glureau
07/21/2023, 7:07 AMglureau
07/21/2023, 12:13 PMglureau
07/21/2023, 3:27 PMjmillner_
07/22/2023, 2:15 PM