This is a tracking issue for an incoming contribution based on a conversation had with @johanbrandhorst in Slack.
v3n: Would you accept a PR to add HttpBody in requests? It’s a pattern that’s shown as an example in the google.api.http docs.
johanbrandhorst: Sure, what exactly is missing for this?
v3n: I’ve got it semi-working locally. To fix, I had the implement the Unmarshal , NewDecoder, and NewEncoderdefinitions for HttpBodyMarshaler. What’s missing right now is the propogation of Content-Type from the request into the HttpBody definition after unmarshaling the request body. To do that, I’ll probably need to add some HttpBody-specific generation logic to protoc-gen-gateway. Additionally, I’ll need to figure out how to represent HttpBody in OpenAPI and make protoc-gen-openapi2 produce the correct Swagger docs.
johanbrandhorst: I think we can split those into two steps, we already don't generate correct OpenAPI for httpbody AFAIK. But yeah, would love to see that contribution!
This is a tracking issue for an incoming contribution based on a conversation had with @johanbrandhorst in Slack.