Merge pull request #421 from bilibili/XyuWang-patch-1

fixed swagger method
pull/423/head
Sam 5 years ago committed by GitHub
commit 3d20bed941
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:
pathItem.Put = op
case http.MethodDelete:
pathItem.Put = op
pathItem.Delete = op
case http.MethodPatch:
pathItem.Patch = op
default:

Loading…
Cancel
Save