Grégory Lureau
07/17/2023, 9:35 PMLandry Norris
07/17/2023, 9:46 PMkotlinx.serialization.protobuf library to serialize your data to a Byte array, then combine it with something like okio to write to files.Landry Norris
07/17/2023, 9:49 PMglureau
07/18/2023, 6:12 AMSebastian Schuberth
07/18/2023, 6:40 AMSebastian Schuberth
07/18/2023, 6:44 AMProtoBufSchemaGenerator.generateSchemaText().glureau
07/18/2023, 6:51 AMglureau
07/18/2023, 7:14 AMvalue class are serialized with the internal type but the generated schema produce a dedicated message for it. Is it expected?
The byte array produced by a value class is exactly the same than when using the internal type. I'd expect some additional headers in proto format if I add an additional message (also when replacing value by data it's producing the same schema but a different byte arrays).
Feels like it's still a bit experimental, so if anyone reading this has more experience with it, thanks for sharing 🙂