fix(api/validation): restore strict forbidNonWhitelisted: true and decorate all GET route queries with explicit DTOs across admin and application APIs
Deploy Canina / deploy (push) Failing after 28s
Deploy Canina / deploy (push) Failing after 28s
This commit is contained in:
1 parent
7cc9194827
commit
fa688e2f8b
10 files changed
+53
-13
No files matched your search
@@ -8,6 +8,11 @@ export class GetProductsDto extends PaginationDto {
|
||||
@IsString()
|
||||
category?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'فیلتر بر اساس آیدی دستهبندی' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
categoryId?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'فیلتر بر اساس نوع حیوان',
|
||||
enum: ['سگ', 'گربه', 'all'],
|
||||
|
||||
Reference in new issue
Block a user