Skip to content

Commit

Permalink
Summary field is not included in docstring
Browse files Browse the repository at this point in the history
Fixes #229
  • Loading branch information
luisfpg committed Mar 19, 2020
1 parent d46114d commit ccc1e88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ng-swagger-gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,14 @@ function processServices(swagger, models, options) {
}
}
var docString = (def.description || '').trim();
var summary = (def.summary || path.summary || '').trim();
if (summary !== '') {
if (docString === '') {
docString = summary;
} else {
docString = summary + '\n\n' + docString;
}
}
if (paramsClass == null) {
for (i = 0; i < operationParameters.length; i++) {
param = operationParameters[i];
Expand Down

0 comments on commit ccc1e88

Please sign in to comment.