handlers/_swagger.js
function setDefaultQueryParams(req, data, logger) {
    var parameters = _.toArray(data.parameters);
    for (var i = 0; i < parameters.length; i++) {
        var parm = parameters[i];
        if (parm.in === 'query') {
            if (!_.isUndefined(parm.default) && _.isUndefined(req.query[parm.name])) {
                req.query[parm.name] = swaggerUtil.cast(parm, parm.default);
            }
        }
    }
}
function setDefaultQueryParams(req, data, logger) {
    var parameters = _.toArray(data.parameters);
    for (var i = 0; i < parameters.length; i++) {
        var parm = parameters[i];
        if (parm.in === 'query') {
            if (!_.isUndefined(parm.default) && _.isUndefined(req.query[parm.name])) {
                req.query[parm.name] = swaggerUtil.cast(parm, parm.default);
            }
        }
    }
}
function setDefaultQueryParams ( req , data , logger ) { var parameters = _ . toArray ( data . parameters ) ; for ( var i = 0 ; i < parameters . length ; i ++ ) { var parm = parameters [ i ] ; if ( parm . in === 'query' ) { if ( ! _ . isUndefined ( parm . default ) && _ . isUndefined ( req . query [ parm . name ] ) ) { req . query [ parm . name ] = swaggerUtil . cast ( parm , parm . default ) ; } } } }
Any parameter with a default that's not already defined will be set to the default value
Any parameter with a default that s not already defined will be set to the default value