Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 6x 6x 6x 6x 6x 6x 6x 6x | import { IsNotEmpty, IsString, IsOptional } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class CreateProjectDto {
@ApiProperty({ description: 'Name of the project', example: 'My App' })
@IsString()
@IsNotEmpty()
project_name: string;
@ApiProperty({
description: 'Absolute path to the project directory',
example: '/Users/dev/projects/my-app',
})
@IsString()
@IsNotEmpty()
project_path: string;
}
export class UpdateProjectDto {
@ApiPropertyOptional({
description: 'Name of the project',
example: 'My App',
})
@IsOptional()
@IsString()
@IsNotEmpty()
project_name?: string;
@ApiPropertyOptional({
description: 'Absolute path to the project directory',
example: '/Users/dev/projects/my-app',
})
@IsOptional()
@IsString()
@IsNotEmpty()
project_path?: string;
}
|