Socket
Socket
Sign inDemoInstall

swagger2openapi

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger2openapi - npm Package Compare versions

Comparing version 3.2.10 to 3.2.11

6

package.json
{
"name": "swagger2openapi",
"version": "3.2.10",
"version": "3.2.11",
"description": "Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",

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

"oas-schema-walker": "^1.1.0",
"oas-validator": "^1.1.9",
"oas-validator": "^1.1.10",
"reftools": "^1.0.2",

@@ -63,3 +63,3 @@ "yargs": "^11.0.0"

},
"gitHead": "f2051e969396874fd01eaf520c4530f6c7d41342"
"gitHead": "ad6b3fb55871b56b1bb34b0f4df133c0ff47d897"
}

@@ -19,4 +19,12 @@ # swagger2openapi

Usage:
## Installation:
This is a node.js module, which you can run on the command line. First ensure you have npm installed (tested on version 6.1+), and then install as follows:
```
$ npm install -g swagger2openapi
```
Or, add it to your node.js projects as shown below in option B.
## Usage:
### A. Command line:
```text

@@ -43,7 +51,7 @@ swagger2openapi [options] [filename|url]

or use the API:
### B. Node.js API:
```javascript
var converter = require('swagger2openapi');
var options = {};
const converter = require('swagger2openapi');
let options = {};
//options.patch = true; // fix up small errors in the source definition

@@ -60,5 +68,7 @@ //options.warnOnly = true; // Do not throw on non-patchable errors

### C. Browser:
Or use the [online version](https://mermade.org.uk/openapi-converter) which also includes its own [API](http://petstore.swagger.io/?url=https://mermade.org.uk/openapi-converter/contract/swagger.json).
### Browser Support
#### Browser Support

@@ -65,0 +75,0 @@ See [initial documentation](/docs/browser.md).

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