swagger2/routes/security/security.js
Function context
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.context = (options, docs) => {
const securityHandlers = R.pathOr({}, ['security'], options)
const securityDefinitions = R.pathOr({}, ['securityDefinitions'], docs)
const handlers = R.mapObjIndexed((definition, key) => {
const handler = R.propOr(notImplemented, key, securityHandlers)