fixed swagger method

pull/421/head
Sam 5 years ago committed by GitHub
parent 7e370e4384
commit 5f8bb6b88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tool/protobuf/protoc-gen-bswagger/generator.go

@ -166,7 +166,7 @@ func (t *swaggerGen) getOperationByHTTPMethod(httpMethod string, pathItem *swagg
case http.MethodPut: case http.MethodPut:
pathItem.Put = op pathItem.Put = op
case http.MethodDelete: case http.MethodDelete:
pathItem.Put = op pathItem.Delete = op
case http.MethodPatch: case http.MethodPatch:
pathItem.Patch = op pathItem.Patch = op
default: default:

Loading…
Cancel
Save