File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import {Driver} from "./driver/Driver";
6
6
import { RoutingControllersOptions } from "./RoutingControllersOptions" ;
7
7
import { CustomParameterDecorator } from "./CustomParameterDecorator" ;
8
8
import { MetadataArgsStorage } from "./metadata-builder/MetadataArgsStorage" ;
9
+ import { ValidationOptions } from "class-validator" ;
9
10
10
11
// -------------------------------------------------------------------------
11
12
// Main exports
@@ -182,7 +183,7 @@ function createExecutor(driver: Driver, options: RoutingControllersOptions): voi
182
183
if ( options . validation !== undefined ) {
183
184
driver . enableValidation = ! ! options . validation ;
184
185
if ( options . validation instanceof Object )
185
- driver . validationOptions = options . validation ;
186
+ driver . validationOptions = options . validation as ValidationOptions ;
186
187
187
188
} else {
188
189
driver . enableValidation = true ;
You can’t perform that action at this time.
0 commit comments