chore(utils): update class-validator to 0.14.0 (#4032)
* update class-validator to 0.14.0 in utils package * Create new-jokes-relax.md --------- Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oliver Windall Juhl
parent
a8887cd02f
commit
1ea57c3a69
@@ -5,7 +5,9 @@ import { validator } from "../../utils/validator"
|
||||
|
||||
export function transformBody<T>(
|
||||
plainToClass: ClassConstructor<T>,
|
||||
config: ValidatorOptions = {}
|
||||
config: ValidatorOptions = {
|
||||
forbidUnknownValues: false,
|
||||
}
|
||||
): (req: Request, res: Response, next: NextFunction) => Promise<void> {
|
||||
return async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user