es/utils/swagger.js
function operationSignature (name, req, opts) {
  const args = req.length ? `${R.join(', ', R.pluck('name', req))}` : null
  const opt = opts.length ? `{${R.join(', ', R.pluck('name', opts))}}` : null

  return `${name} (${R.join(', ', [args, opt].filter(R.identity))})`
}
function operationSignature (name, req, opts) {
  const args = req.length ? `${R.join(', ', R.pluck('name', req))}` : null
  const opt = opts.length ? `{${R.join(', ', R.pluck('name', opts))}}` : null

  return `${name} (${R.join(', ', [args, opt].filter(R.identity))})`
}
function operationSignature ( name , req , opts ) { const args = req . length ? ` ${ R . join ( ', ' , R . pluck ( 'name' , req ) ) } ` : null const opt = opts . length ? ` ${ R . join ( ', ' , R . pluck ( 'name' , opts ) ) } ` : null return ` ${ name } ${ R . join ( ', ' , [ args , opt ] . filter ( R . identity ) ) } ` }
Obtain readable signature for operation
@rtype (name: String, req: [...Object], opts: [...Object]) => Object
@param {String} name - Name of operation
@param {Object[]} req - Required parameters to operation
@param {Object[]} opts - Optional parameters to operation
@return {String} Signature
Obtain readable signature for operation