@philips I did take a closer look at your interesting grpc-gateway-examples code after reading the blog post and noticed some minor problems. I hope you don't mind if I open some issues even though this is "only" example code. Maybe other readers will find this useful.
The echopb/Makefile generates a service.swagger.json with
"schemes": [
"http",
"https"
],
I've added this line to the Makefile to remove the http scheme.
jq 'del(.schemes[] | select(. == "http"))' service.swagger.json >service.swagger.json.new && mv service.swagger.json.new service.swagger.json
Unfortunately, there's no protoc-gen-swagger option to do this directly.
See: grpc-ecosystem/grpc-gateway#161
@philips I did take a closer look at your interesting
grpc-gateway-examplescode after reading the blog post and noticed some minor problems. I hope you don't mind if I open some issues even though this is "only" example code. Maybe other readers will find this useful.The
echopb/Makefilegenerates aservice.swagger.jsonwithI've added this line to the Makefile to remove the
httpscheme.Unfortunately, there's no
protoc-gen-swaggeroption to do this directly.See: grpc-ecosystem/grpc-gateway#161