common added for decorators dto and guards

This commit is contained in:
2025-08-25 10:27:37 +02:00
parent a87824a0c2
commit 47ccbb61f7
7 changed files with 67 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { IsOptional, IsString, MinLength } from "class-validator";
export class SearchQueryDto {
@IsOptional()
@IsString()
@MinLength(2)
q?: string;
}