Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oas-resolver

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oas-resolver - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

in/openapi1.yaml

6

package.json
{
"name": "oas-resolver",
"version": "1.1.0",
"version": "1.1.1",
"description": "Resolve external $refs in OpenAPI (swagger) 2.0 / 3.x definitions",

@@ -24,3 +24,3 @@ "main": "index.js",

"node-fetch-h2": "^2.3.0",
"oas-kit-common": "^1.0.5",
"oas-kit-common": "^1.0.6",
"reftools": "^1.0.4",

@@ -36,3 +36,3 @@ "yargs": "^12.0.2"

},
"gitHead": "81067168e0cc0c151de4fd25bf24cfc23bc7bf8b"
"gitHead": "50a250ff1e68b735925e06e59ba9aed12207216c"
}
# oas-resolver
## Usage
```js
const input = yaml.safeLoad(str,{json:true});
const source = url; // or filename
resolver.resolve(input,source,options)
.then(function(options){
fs.writeFileSync(outputFile,yaml.safeDump(options.openapi),'utf8');
})
.catch(function(ex){
// ...
});
```
See here for complete [documentation](/docs/options.md) of the `options` object.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc