routing-controllers
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -215,3 +215,3 @@ "use strict"; | ||
if (isValidationEnabled && shouldValidate) { | ||
const options = Object.assign({}, this.driver.validationOptions, paramMetadata.validate); | ||
const options = Object.assign({ forbidUnknownValues: false }, this.driver.validationOptions, paramMetadata.validate); | ||
return (0, class_validator_1.validateOrReject)(value, options) | ||
@@ -218,0 +218,0 @@ .then(() => value) |
@@ -212,3 +212,3 @@ import { plainToInstance } from 'class-transformer'; | ||
if (isValidationEnabled && shouldValidate) { | ||
const options = Object.assign({}, this.driver.validationOptions, paramMetadata.validate); | ||
const options = Object.assign({ forbidUnknownValues: false }, this.driver.validationOptions, paramMetadata.validate); | ||
return validate(value, options) | ||
@@ -215,0 +215,0 @@ .then(() => value) |
{ | ||
"name": "routing-controllers", | ||
"private": false, | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage for Express / Koa using TypeScript.", | ||
@@ -34,3 +34,3 @@ "author": "TypeStack contributors", | ||
"class-transformer": "^0.5.1", | ||
"class-validator": "^0.13.2" | ||
"class-validator": "^0.14.0" | ||
}, | ||
@@ -43,3 +43,3 @@ "optionalDependencies": { | ||
"express-session": "^1.17.3", | ||
"koa": "^2.13.4", | ||
"koa": "^2.14.1", | ||
"koa-bodyparser": "^4.3.0", | ||
@@ -46,0 +46,0 @@ "multer": "^1.4.4" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
942788