Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger execute with wrong url when using post: "/v1/Things/{thing}/Services/{service}" #2976

Closed
qazwsxedckll opened this issue Oct 24, 2022 · 1 comment

Comments

@qazwsxedckll
Copy link

🐛 Bug Report

When using post: "/v1/Things/{thing}/Services/{service}", swagger execute with wrong url.

Expected behavior

Should call http://localhost:8080/v1/Things/Thing1/Services/Start

Actual Behavior

image

@qazwsxedckll
Copy link
Author

qazwsxedckll commented Oct 24, 2022

It is related to #702 and #2562

so how to use string name = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {field_configuration: {path_param_name: "shelfName"}}];

I am using buf

unknown extension grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field

this is my buf.gen.yaml

version: v1
plugins:
  - name: go
    out: api/gen/proto/go
    opt:
      - paths=source_relative
  - name: go-grpc
    out: api/gen/proto/go
    opt:
      - paths=source_relative
  - name: grpc-gateway
    out: api/gen/proto/go
    opt:
      - paths=source_relative
  - name: openapiv2
    out: docs/swagger
    opt:
      - allow_merge=true
    strategy: all

buf.yaml

version: v1
deps:
  - buf.build/googleapis/googleapis
  - buf.build/grpc-ecosystem/grpc-gateway
breaking:
  use:
    - FILE
lint:
  use:
    - DEFAULT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant