diff --git a/src/dtos/sms.mo.dto.ts b/src/dtos/sms.mo.dto.ts index 2bd6924..7e2c9b0 100644 --- a/src/dtos/sms.mo.dto.ts +++ b/src/dtos/sms.mo.dto.ts @@ -4,12 +4,14 @@ import { ValidateNested, IsNotEmpty, IsDateString, + IsOptional, } from 'class-validator'; import { Type } from 'class-transformer'; export class InboundSMSMessageDto { @ApiProperty({ example: '2025-10-30T14:00:00Z' }) @IsDateString() + @IsOptional() dateTime: string; @ApiProperty({ example: '+33612345678' }) @@ -20,6 +22,7 @@ export class InboundSMSMessageDto { @ApiProperty({ example: 'mes1234' }) @IsString() @IsNotEmpty() + @IsOptional() messageId: string; @ApiProperty({