lib/swagger-koa/index.js
function getSwagger(fragment, fn) {
  for (var i = 0; i < fragment.tags.length; i++) {
    var tag = fragment.tags[i];
    if ('swagger' === tag.title) {
      return yaml.safeLoadAll(tag.description, fn);
    }
  }

  return fn(false);
}
function getSwagger(fragment, fn) {
  for (var i = 0; i < fragment.tags.length; i++) {
    var tag = fragment.tags[i];
    if ('swagger' === tag.title) {
      return yaml.safeLoadAll(tag.description, fn);
    }
  }

  return fn(false);
}
function getSwagger ( fragment , fn ) { for ( var i = 0 ; i < fragment . tags . length ; i ++ ) { var tag = fragment . tags [ i ] ; if ( 'swagger' === tag . title ) { return yaml . safeLoadAll ( tag . description , fn ) ; } } return fn ( false ) ; }
Get jsDoc tag with title '@swagger'
@api    private
@param  {Object} fragment
@param  {Function} fn
Get jsDoc tag with title