change validation to be stricter

This commit is contained in:
rubikscraft
2022-03-19 21:34:33 +01:00
parent cc7d9ddef3
commit 94c2a16bc9
24 changed files with 247 additions and 167 deletions

View File

@@ -5,8 +5,7 @@ import {
IsNotEmpty,
IsString,
Max,
Min,
ValidateNested,
Min
} from 'class-validator';
class BaseApiResponse<T extends Object, W extends boolean> {
@@ -24,7 +23,7 @@ class BaseApiResponse<T extends Object, W extends boolean> {
@IsNotEmpty()
timestamp: string;
@ValidateNested()
//@ValidateNested()
@IsDefined()
data: T;
}