Skip to content

Commit

Permalink
Add missing fields (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus authored and tmc committed Jan 2, 2018
1 parent 4af0110 commit c1c70b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,12 @@ func applyTemplate(p param) (string, error) {
if spb.Info.Title != "" {
s.Info.Title = spb.Info.Title
}
if spb.Info.Description != "" {
s.Info.Description = spb.Info.Description
}
if spb.Info.TermsOfService != "" {
s.Info.TermsOfService = spb.Info.TermsOfService
}
if spb.Info.Version != "" {
s.Info.Version = spb.Info.Version
}
Expand Down

0 comments on commit c1c70b3

Please sign in to comment.