Skip to content

Commit

Permalink
Merge pull request yvasiyarov#26 from polyglot-jones/issue_21_title
Browse files Browse the repository at this point in the history
Fixed issue yvasiyarov#21. Renamed the @title and @description annotations for the...
  • Loading branch information
yvasiyarov committed Aug 28, 2014
2 parents c465214 + cd37153 commit c887b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ func (parser *Parser) ParseGeneralApiInfo(mainApiFile string) {
switch attribute {
case "@apiversion":
parser.Listing.ApiVersion = strings.TrimSpace(commentLine[len("@APIVersion"):])
case "@title":
parser.Listing.Infos.Title = strings.TrimSpace(commentLine[len("@Title"):])
case "@description":
parser.Listing.Infos.Description = strings.TrimSpace(commentLine[len("@Description"):])
case "@apititle":
parser.Listing.Infos.Title = strings.TrimSpace(commentLine[len("@ApiTitle"):])
case "@apidescription":
parser.Listing.Infos.Description = strings.TrimSpace(commentLine[len("@ApiDescription"):])
case "@termsofserviceurl":
parser.Listing.Infos.TermsOfServiceUrl = strings.TrimSpace(commentLine[len("@TermsOfServiceUrl"):])
case "@contact":
Expand Down

0 comments on commit c887b1a

Please sign in to comment.