mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-12 23:05:39 +01:00
relocate validator composer
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user