es/utils/swagger.js
function classifyParameters (parameters) {
  const { req, opts } = R.groupBy(p => p.required ? 'req' : 'opts', parameters)
  const { path, query, body } = R.groupBy(p => p.in, parameters)

  return {
    pathArgs: R.pluck('name', path || []),
    queryArgs: R.pluck('name', query || []),
    bodyArgs: R.pluck('name', body || []),
    req: req || [],
    opts: opts || []
  }
}
function classifyParameters (parameters) {
  const { req, opts } = R.groupBy(p => p.required ? 'req' : 'opts', parameters)
  const { path, query, body } = R.groupBy(p => p.in, parameters)

  return {
    pathArgs: R.pluck('name', path || []),
    queryArgs: R.pluck('name', query || []),
    bodyArgs: R.pluck('name', body || []),
    req: req || [],
    opts: opts || []
  }
}
function classifyParameters ( parameters ) { const { req , opts } = R . groupBy ( p => p . required ? 'req' : 'opts' , parameters ) const { path , query , body } = R . groupBy ( p => p . in , parameters ) return { pathArgs : R . pluck ( 'name' , path || [ ] ) , queryArgs : R . pluck ( 'name' , query || [ ] ) , bodyArgs : R . pluck ( 'name' , body || [ ] ) , req : req || [ ] , opts : opts || [ ] } }
Classify given `parameters`
@rtype (parameters: [{required: Boolean, in: String}...]) => {pathArgs: [...Object], queryArgs: [...Object], bodyArgs: [...Object], req: [...Object], opts: [...Object]}
@param {Object[]} parameters - Parameters to classify
@return {Object[]} Classified parameters
Classify given parameters