Skip to content

Commit

Permalink
Merge pull request #261 from ihippik/patch-2
Browse files Browse the repository at this point in the history
Separate "Description" with "Summary" params
  • Loading branch information
astaxie authored Aug 27, 2016
2 parents f813e99 + 7e60509 commit cff303a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion g_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat
} else if strings.HasPrefix(t, "@Title") {
opts.OperationID = controllerName + "." + strings.TrimSpace(t[len("@Title"):])
} else if strings.HasPrefix(t, "@Description") {
opts.Summary = strings.TrimSpace(t[len("@Description"):])
opts.Description = strings.TrimSpace(t[len("@Description"):])
} else if strings.HasPrefix(t, "@Summary") {
opts.Summary = strings.TrimSpace(t[len("@Summary"):])
} else if strings.HasPrefix(t, "@Success") {
ss := strings.TrimSpace(t[len("@Success"):])
rs := swagger.Response{}
Expand Down

0 comments on commit cff303a

Please sign in to comment.