This commit is contained in:
2025-11-10 23:00:59 +03:30
parent bca4b75b6a
commit 6a25bf9116
6 changed files with 28 additions and 49 deletions
+1 -11
View File
@@ -1,6 +1,5 @@
import { IsString, IsNotEmpty, IsBoolean, IsNumber, IsEnum, MinLength } from 'class-validator';
import { IsString, IsNotEmpty, IsBoolean, IsNumber, MinLength } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { EducationLevel } from '../entities/user.entity';
export class UpdateUserDto {
@ApiProperty({ example: ' ', description: "User's first name" })
@@ -51,13 +50,4 @@ export class UpdateUserDto {
@IsNotEmpty()
@IsNumber()
workExperienceYear: number;
@ApiPropertyOptional({
enum: EducationLevel,
example: EducationLevel.master,
description: 'Highest level of education achieved',
})
@IsNotEmpty()
@IsEnum(EducationLevel)
education: EducationLevel;
}