mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-16 16:25:49 +01:00
change validation to be stricter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user