Skip to content

Commit

Permalink
update: swagger文档的描述恢复tag信息显示
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed Oct 10, 2023
1 parent 361d2cf commit ada2f0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions console/commands/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ func rpcToPath(pge string, service parser.ServiceRpc, swagger *openapi.Spec, now
endpoint := &openapi.Endpoint{}
switch option.Key {
case "http.Get", "http.Put", "http.Post", "http.Patch", "http.Delete":
service.Doc = filterTag(service.Doc)
endpoint.Description = service.Doc + option.Doc
endpoint.Summary = service.Doc + option.Doc
endpoint.Summary = filterTag(service.Doc) + option.Doc
endpoint.Tags = strings.Split(pge, ".")
endpoint.Parameters = messageToParameters(option.Key, service.Param, nowDirProtoc, allProtoc)
endpoint.Responses = map[string]*openapi.Response{
Expand Down

0 comments on commit ada2f0b

Please sign in to comment.