change month format from MM/YYYY to MM-YYYY

This commit is contained in:
hannathkadher
2025-07-17 15:22:20 +04:00
parent 85687e7950
commit 6d529ee0ae
2 changed files with 4 additions and 4 deletions

View File

@ -3,12 +3,12 @@ import { IsNotEmpty, IsOptional, IsUUID, Matches } from 'class-validator';
export class BookingRequestDto {
@ApiProperty({
description: 'Month in MM/YYYY format',
example: '07/2025',
description: 'Month in MM-YYYY format',
example: '07-2025',
})
@IsNotEmpty()
@Matches(/^(0[1-9]|1[0-2])\/\d{4}$/, {
message: 'Date must be in MM/YYYY format',
message: 'Date must be in MM-YYYY format',
})
month: string;