1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-19 21:18:07 +02:00

Merge pull request from bilibili/XyuWang-patch-1

fixed swagger method
This commit is contained in:
Sam 2019-11-07 11:39:06 +08:00 committed by GitHub
commit 3d20bed941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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: