swagger-tools
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -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'); |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2735641
33034