task: add space filter to bookings (#471)

This commit is contained in:
ZaydSkaff
2025-07-15 13:31:56 +03:00
committed by GitHub
parent e5970c02c1
commit 036c8bea17
2 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, Matches } from 'class-validator';
import { IsNotEmpty, IsOptional, IsUUID, Matches } from 'class-validator';
export class BookingRequestDto {
@ApiProperty({
@ -11,4 +11,13 @@ export class BookingRequestDto {
message: 'Date must be in MM/YYYY format',
})
month: string;
@ApiProperty({
description: 'Space UUID',
example: '550e8400-e29b-41d4-a716-446655440000',
required: false,
})
@IsOptional()
@IsUUID('4')
space?: string;
}