express-contracts
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "express-contracts", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Express.js plugin for checking request and response with rho-contracts", | ||
@@ -5,0 +5,0 @@ "license": "BSD-2-Clause", |
@@ -41,5 +41,9 @@ var c = require('rho-contracts-fork'); | ||
var validateRequest = function (req, requestContract, next) { | ||
// Check each field (body, query, etc) individually so that we don't | ||
// Check each field (body, query, params) individually so that we don't | ||
// dump the *entire* express req object into the error message. | ||
var relevantKeyDescriptions = { body: 'request body', query: 'query string' }; | ||
var relevantKeyDescriptions = { | ||
body: 'request body', | ||
query: 'query string', | ||
params: 'request params', | ||
}; | ||
var key; | ||
@@ -46,0 +50,0 @@ try { |
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
14114
216