common added for decorators dto and guards
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { IsOptional, IsString, MinLength } from "class-validator";
|
||||
|
||||
export class SearchQueryDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(2)
|
||||
q?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user