protopuf
protopuf copied to clipboard
[Infra] Translator: from Protocol Buffers language (proto3) to protopuf C++ code snippets
In the meantime, I'm realizing another simple option could be json with typescript interfaces, to describe a schema? This can then be recursively walked to generate a .proto and the respective protopuf declarations? In other words, the json file becomes the "source of truth" from which everything else is generated.
Sure, but probably the biggest advantage of translating from protocol buffers language to protopuf c++ type definitions is that many existing .proto files can be reused, which would be lost in translating from json.
Absolutely, I was simply suggesting a workaround in the meantime.