diff --git a/src/modules/product/DTO/createReportQuestion.dto.ts b/src/modules/product/DTO/createReportQuestion.dto.ts index d01bfde..c5cc940 100644 --- a/src/modules/product/DTO/createReportQuestion.dto.ts +++ b/src/modules/product/DTO/createReportQuestion.dto.ts @@ -1,17 +1,13 @@ +import { Expose } from "class-transformer"; import { IsNotEmpty, IsString, MinLength } from "class-validator"; import { ApiProperty } from "../../../common/decorator/swggerDocs"; export class CreateReportQuestionDTO { + @Expose() @IsNotEmpty() @IsString() @MinLength(3) @ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" }) title: string; - - // @IsNotEmpty() - // @IsString() - // @MinLength(3) - // @ApiProperty({ type: "string", description: "placeholder of the question", example: "" }) - // placeholder: string; }