Skip to content

http scheme in service.swagger.json #19

@knweiss

Description

@knweiss

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions