handlers/_swagger.js
function containsMultipartFormData(api) {
    if (_.includes(api.consumes, 'multipart/form-data')) {
        return true;
    }

    var foundMultipartData = false;
    _.forEach(_.keys(api.paths), function (path) {
        var pathData = api.paths[path];
        _.forEach(_.keys(pathData), function (method) {
            if (_.includes(pathData[method].consumes, 'multipart/form-data')) {
                foundMultipartData = true;
                return;
            }
        });
        if (foundMultipartData) {
            return;
        }

    });

    return foundMultipartData;
}
function containsMultipartFormData(api) {
    if (_.includes(api.consumes, 'multipart/form-data')) {
        return true;
    }

    var foundMultipartData = false;
    _.forEach(_.keys(api.paths), function (path) {
        var pathData = api.paths[path];
        _.forEach(_.keys(pathData), function (method) {
            if (_.includes(pathData[method].consumes, 'multipart/form-data')) {
                foundMultipartData = true;
                return;
            }
        });
        if (foundMultipartData) {
            return;
        }

    });

    return foundMultipartData;
}
function containsMultipartFormData ( api ) { if ( _ . includes ( api . consumes , 'multipart/form-data' ) ) { return true ; } var foundMultipartData = false ; _ . forEach ( _ . keys ( api . paths ) , function ( path ) { var pathData = api . paths [ path ] ; _ . forEach ( _ . keys ( pathData ) , function ( method ) { if ( _ . includes ( pathData [ method ] . consumes , 'multipart/form-data' ) ) { foundMultipartData = true ; return ; } } ) ; if ( foundMultipartData ) { return ; } } ) ; return foundMultipartData ; }
determine if something in the spec uses formdata The entire api can contain a consume field, or just an individual route
determine if something in the spec uses formdata The entire api can contain a consume field or just an individual route