Skip to content

Commit

Permalink
feat: update user dto
Browse files Browse the repository at this point in the history
  • Loading branch information
aniebietafia committed Oct 2, 2024
1 parent d957787 commit c5d4c25
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion brints-estate-api/src/users/dto/update-user.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { PartialType } from '@nestjs/mapped-types';
import { CreateUserDto } from '../../auth/dto/create-user.dto';
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class UpdateUserDto extends PartialType(CreateUserDto) {}
export class UpdateUserDto extends PartialType(CreateUserDto) {
@ApiProperty({
description: 'The id of the user',
example: '60b7f3a8d8e9a7e4d8f9b1a7',
})
@IsNotEmpty()
@IsString()
id: string;
}

0 comments on commit c5d4c25

Please sign in to comment.