Merge pull request #17 from Danakcorp/mrtz

fix : dto bug
This commit is contained in:
morteza-mortezai
2025-10-15 13:55:29 +03:30
committed by GitHub
@@ -1,17 +1,13 @@
import { Expose } from "class-transformer";
import { IsNotEmpty, IsString, MinLength } from "class-validator"; import { IsNotEmpty, IsString, MinLength } from "class-validator";
import { ApiProperty } from "../../../common/decorator/swggerDocs"; import { ApiProperty } from "../../../common/decorator/swggerDocs";
export class CreateReportQuestionDTO { export class CreateReportQuestionDTO {
@Expose()
@IsNotEmpty() @IsNotEmpty()
@IsString() @IsString()
@MinLength(3) @MinLength(3)
@ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" }) @ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" })
title: string; title: string;
// @IsNotEmpty()
// @IsString()
// @MinLength(3)
// @ApiProperty({ type: "string", description: "placeholder of the question", example: "" })
// placeholder: string;
} }