@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user