update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user