diff --git a/ng-swagger-gen.js b/ng-swagger-gen.js index 4b13009..2a33cd9 100644 --- a/ng-swagger-gen.js +++ b/ng-swagger-gen.js @@ -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];