packages/oas-resolver/index.js
function optionalResolve(options) {
    setupOptions(options);
    return new Promise(function (res, rej) {
        if (options.resolve)
            loopReferences(options, res, rej)
        else
            res(options);
    });
}
function optionalResolve(options) {
    setupOptions(options);
    return new Promise(function (res, rej) {
        if (options.resolve)
            loopReferences(options, res, rej)
        else
            res(options);
    });
}
function optionalResolve ( options ) { setupOptions ( options ) ; return new Promise ( function ( res , rej ) { if ( options . resolve ) loopReferences ( options , res , rej ) else res ( options ) ; } ) ; }
compatibility function for swagger2openapi
compatibility function for swagger2openapi