19 lines
342 B
TypeScript
19 lines
342 B
TypeScript
import { IsBoolean, IsOptional, IsString, MaxLength, MinLength } from 'class-validator';
|
|
|
|
export class CloneProjectDto {
|
|
@IsOptional()
|
|
@IsString()
|
|
@MinLength(3)
|
|
@MaxLength(120)
|
|
name?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(400)
|
|
description?: string;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
includeParticipants?: boolean;
|
|
}
|