Skip to content

Commit

Permalink
fix(be): optional dob
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Oct 10, 2023
1 parent 41165ce commit e097f3c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/user/dto/update-profile-request.dto.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { Gender } from '../../common/enum';

export class UpdateProfileRequestDto {
@ApiPropertyOptional({ example: '2020-07-05' })
@IsString()
birthdate: string;

@ApiProperty({ enum: Gender, enumName: 'Gender' })
@ApiPropertyOptional({ enum: Gender, enumName: 'Gender' })
gender: Gender;

@ApiProperty({ example: '' })
@ApiPropertyOptional({ example: '' })
bio: string;

@ApiPropertyOptional({ type: 'string', format: 'binary' })
Expand Down

0 comments on commit e097f3c

Please sign in to comment.