2.5.6 • Published 3 years ago

oas-resolver v2.5.6

Weekly downloads
260,427
License
BSD-3-Clause
Repository
github
Last release
3 years ago

oas-resolver

Usage

const yaml = require('yaml');
const input = yaml.parse(str);
const source = url; // or filename
resolver.resolve(input,source,options)
.then(function(options){
  fs.writeFileSync(outputFile,yaml.stringify(options.openapi),'utf8');
})
.catch(function(ex){
  // ...
});

See here for complete documentation of the options object.