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.6 to 3.2.7

6

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

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

"oas-schema-walker": "^1.0.4",
"oas-validator": "^1.1.5",
"oas-validator": "^1.1.6",
"reftools": "^1.0.2",

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

},
"gitHead": "8b8f3261593693148ca73e9c159a6a3bb2b01e99"
"gitHead": "75bce80f429040c551a49aacf23d8d0a56ec1bcf"
}

@@ -6,3 +6,3 @@ # swagger2openapi

[![OpenAPI Validation](https://mermade.org.uk/openapi-converter/api/v1/badge?url=https://mermade.org.uk/openapi-converter/examples/openapi.json)](https://mermade.org.uk/openapi-converter/api/v1/validate?url=https://mermade.org.uk/openapi-converter/examples/openapi.json)
![Build](https://img.shields.io/travis/Mermade/swagger2openapi/master.svg)
![Build](https://img.shields.io/travis/Mermade/oas-kit/master.svg)
[![Tested on APIs.guru](https://api.apis.guru/badges/tested_on.svg)](https://APIs.guru)

@@ -12,3 +12,3 @@ [![Tested on Mermade OpenAPIs](https://img.shields.io/badge/Additional%20Specs-34882-brightgreen.svg)](https://github.com/mermade/openapi-definitions)

[![Known Vulnerabilities](https://snyk.io/test/npm/swagger2openapi/badge.svg)](https://snyk.io/test/npm/swagger2openapi)
[![Greenkeeper badge](https://badges.greenkeeper.io/Mermade/swagger2openapi.svg)](https://greenkeeper.io/)
[![Greenkeeper badge](https://badges.greenkeeper.io/Mermade/oas-kit.svg)](https://greenkeeper.io/)

@@ -44,3 +44,3 @@ Convert Swagger 2.0 definitions into OpenApi 3.0.x

or use the APIs:
or use the API:

@@ -59,12 +59,2 @@ ```javascript

```javascript
var validator = require('swagger2openapi/validate.js');
var options = {};
validator.validate(openapi, options, function(err, options){
// options.valid contains the result of the validation
// options.context now contains a stack (array) of JSON-Pointer strings
});
// also available is a synchronous validateSync method which returns a boolean
```
See here for complete [documentation](/docs/options.md) of the `options` object.

@@ -71,0 +61,0 @@

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