mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-08-26 07:19:38 +00:00
task: add space filter to bookings (#471)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user