You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sidekick parses Protobuf or OpenAPI (and whatever comes next) and creates a api.API model of the service specification.
Then we ask the target language Codec (currently for Rust or Go) a bunch of questions and create the model in templatedata.go. And then we use the same mustache templates that the Codec creates to generate the code.
Maybe a cleaner approach would be to pass the api.API model directly to the Codec and let it call the mustache templates. The Codec can create its own enriched1 model of the API if needed.
@dangazineu suggested the good parts of this issue request, the bad ideas came from somebody else (not me, of course).
sidekick
parses Protobuf or OpenAPI (and whatever comes next) and creates aapi.API
model of the service specification.Then we ask the target language Codec (currently for Rust or Go) a bunch of questions and create the model in
templatedata.go
. And then we use the same mustache templates that the Codec creates to generate the code.Maybe a cleaner approach would be to pass the
api.API
model directly to the Codec and let it call the mustache templates. The Codec can create its own enriched1 model of the API if needed.@dangazineu suggested the good parts of this issue request, the bad ideas came from somebody else (not me, of course).
Footnotes
I think that is what the cool kids call them. ↩
The text was updated successfully, but these errors were encountered: