lib/mock/semantic-request.js
function responseIsCollection (req) {
  let getter = req.swagger.path.get || req.swagger.path.head;
  if (getter) {
    let responses = util.getResponsesBetween(getter, 200, 299);
    if (responses.length > 0) {
      let response = new SemanticResponse(responses[0].api, req.swagger.path);
      if (!response.isEmpty) {
        return response.isCollection;
      }
    }
  }
}
function responseIsCollection (req) {
  let getter = req.swagger.path.get || req.swagger.path.head;
  if (getter) {
    let responses = util.getResponsesBetween(getter, 200, 299);
    if (responses.length > 0) {
      let response = new SemanticResponse(responses[0].api, req.swagger.path);
      if (!response.isEmpty) {
        return response.isCollection;
      }
    }
  }
}
function responseIsCollection ( req ) { let getter = req . swagger . path . get || req . swagger . path . head ; if ( getter ) { let responses = util . getResponsesBetween ( getter , 200 , 299 ) ; if ( responses . length > 0 ) { let response = new SemanticResponse ( responses [ 0 ] . api , req . swagger . path ) ; if ( ! response . isEmpty ) { return response . isCollection ; } } } }
Examines the GET or HEAD operation for the path and determines whether it is a collection response.

@param   {Request} req

@returns {boolean|undefined}
True if the response schema is a collection.  False if it's not a collection.  Undefined if there is not response schema.
Examines the GET or HEAD operation for the path and determines whether it is a collection response .