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:
Lacey Pevey
2023-05-08 18:29:31 +02:00
committed by GitHub
co-authored by Oliver Windall Juhl
parent a8887cd02f
commit 1ea57c3a69
4 changed files with 11 additions and 20 deletions
@@ -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 {