This commit is contained in:
2025-12-14 11:12:18 +03:30
parent 163b4742a0
commit a1c74a78a9
3 changed files with 16 additions and 15 deletions
+5 -5
View File
@@ -1,11 +1,6 @@
import { IsString, IsOptional, IsBoolean } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
/**
* DTO for updating user profile.
* Mirrors fields defined on the User entity and keeps everything optional
* to allow partial updates.
*/
export class UpdateUserDto {
@ApiPropertyOptional({ description: "User's first name", example: 'John' })
@IsOptional()
@@ -32,4 +27,9 @@ export class UpdateUserDto {
@IsOptional()
@IsBoolean()
gender?: boolean;
@ApiPropertyOptional({ description: 'Avatar URL' })
@IsOptional()
@IsString()
avatarUrl?: string;
}