Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #21. Renamed the @Title and @Description annotations for the... #26

Merged
merged 1 commit into from
Aug 28, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed issue #21. Renamed the @title and @description annotations for …
…the main API to @ApiTitle and @ApiDescription, respectively, so that they do not conflict with the @title and @description annotations of API operations. This is the quickest fix for for #21, however it breaks backwards compatibility.
  • Loading branch information
polyglot-jones committed Aug 27, 2014
commit cd3715332a6fd2474e80e3ddd654885615695381
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