|
|
@ -74,8 +74,8 @@ func (t *swaggerGen) generateSwagger(file *descriptor.FileDescriptorProto) *plug |
|
|
|
} |
|
|
|
} |
|
|
|
apiInfo := t.GetHttpInfoCached(file, svc, meth) |
|
|
|
apiInfo := t.GetHttpInfoCached(file, svc, meth) |
|
|
|
pathItem := swaggerPathItemObject{} |
|
|
|
pathItem := swaggerPathItemObject{} |
|
|
|
if originPathItem,ok := swaggerObj.Paths[apiInfo.Path];ok{ |
|
|
|
if originPathItem, ok := swaggerObj.Paths[apiInfo.Path]; ok { |
|
|
|
pathItem= originPathItem |
|
|
|
pathItem = originPathItem |
|
|
|
} |
|
|
|
} |
|
|
|
op := t.getOperationByHTTPMethod(apiInfo.HttpMethod, &pathItem) |
|
|
|
op := t.getOperationByHTTPMethod(apiInfo.HttpMethod, &pathItem) |
|
|
|
op.Summary = apiInfo.Title |
|
|
|
op.Summary = apiInfo.Title |
|
|
|