We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
protoc-gen-swagger from current grpc-gateway master
rpc Update(AccountUpdateReq) returns (Account) { option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { operation_id: "AccountUpdate"; responses: { key: "default"; value: { description: "Error response"; schema: { json_schema: { ref: ".Error"; } } } } }; option (google.api.http) = { put: "/api/v0/accounts/{account.uuid}" body: "account"; }; }; message AccountUpdateReq { Account account = 1; google.protobuf.FieldMask fields = 2; };
generates:
"/api/v0/accounts/{account.uuid}": { "put": { "operationId": "AccountUpdate", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/Account" } }, "default": { "description": "Error response", "schema": { "$ref": "#/definitions/Error" } } }, "parameters": [ { "name": "account.uuid", "in": "path", "required": true, "type": "string" }, { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/Account" } } ], "tags": [ "AccountService" ] } },
The text was updated successfully, but these errors were encountered:
as i understand all stuff that not in body and in path must be in params
Sorry, something went wrong.
i think that my issue is the same as #1015
Closing as duplicate
No branches or pull requests
protoc-gen-swagger from current grpc-gateway master
generates:
The text was updated successfully, but these errors were encountered: