relocate validator composer

This commit is contained in:
rubikscraft
2022-03-27 22:48:10 +02:00
parent ac98db10df
commit 904ba2ee4b
18 changed files with 45 additions and 27 deletions

View File

@@ -1,5 +1,8 @@
import { validate } from 'class-validator';
// For some stupid reason, the class-validator library does not have a way to set global defaults
// So now we have to do it this way
export const ValidateOptions = {
disableErrorMessages: true,
forbidNonWhitelisted: true,