Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

oas-resolver

2.3.2 • Public • Published

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.

Install

npm i oas-resolver

DownloadsWeekly Downloads

158,431

Version

2.3.2

License

BSD-3-Clause

Unpacked Size

27.5 kB

Total Files

8

Last publish

Collaborators

  • avatar