diff --git a/tool/protobuf/protoc-gen-bswagger/generator.go b/tool/protobuf/protoc-gen-bswagger/generator.go index b39fe16f2..3552d176e 100644 --- a/tool/protobuf/protoc-gen-bswagger/generator.go +++ b/tool/protobuf/protoc-gen-bswagger/generator.go @@ -166,7 +166,7 @@ func (t *swaggerGen) getOperationByHTTPMethod(httpMethod string, pathItem *swagg case http.MethodPut: pathItem.Put = op case http.MethodDelete: - pathItem.Put = op + pathItem.Delete = op case http.MethodPatch: pathItem.Patch = op default: