We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a02110 commit 423a0d0Copy full SHA for 423a0d0
apps/backend/src/research/participants/participant.dto.ts
@@ -1,13 +1,13 @@
1
import { ApiProperty, OmitType, PartialType } from "@nestjs/swagger";
2
import { Type } from "class-transformer";
3
-import { IsDate, IsOptional } from "class-validator";
+import { IsDateString, IsOptional } from "class-validator";
4
5
export class ParticipantDto {
6
@ApiProperty({ example: 1, description: "The id of the participant (child id)" })
7
id: number;
8
9
@ApiProperty({ example: "2024-11-01T00:05:02.718Z", description: "The birthday of the participant" })
10
- @IsDate()
+ @IsDateString()
11
@IsOptional()
12
birthday?: Date;
13
0 commit comments