Socket
Socket
Sign inDemoInstall

swagger-tools

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-tools - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

5

middleware/swagger-router.js

@@ -226,2 +226,7 @@ /*

// Explicitly set the response status to 200 if not present (Issue #269)
if (_.isUndefined(req.statusCode)) {
res.statusCode = 200;
}
// Mock mode only supports JSON right now

@@ -228,0 +233,0 @@ res.setHeader('Content-Type', 'application/json');

2

middleware/swagger-validator.js

@@ -224,3 +224,3 @@ /*

schema = _.find(operation.responses, function (response, code) {
if (code === res.statusCode.toString()) {
if (code === (res.statusCode || 200).toString()) {
vPath.push('responses', code);

@@ -227,0 +227,0 @@

{
"name": "swagger-tools",
"version": "0.9.3",
"version": "0.9.4",
"description": "Various tools for using and integrating with Swagger.",

@@ -5,0 +5,0 @@ "main": "index.js",

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