fixed automation dto

This commit is contained in:
hannathkadher
2024-11-04 19:43:49 +04:00
parent a133f78bb3
commit 8cbe910f4c
4 changed files with 12 additions and 22 deletions

View File

@ -1,11 +1,12 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsUUID } from 'class-validator';
import { IsNotEmpty, IsString } from 'class-validator';
export class AutomationParamDto {
@ApiProperty({
description: 'UUID of the automation',
example: 'd290f1ee-6c54-4b01-90e6-d701748f0851',
description: 'TuyaId of the automation',
example: 'SfFi2Tbn09btes84',
})
@IsUUID()
@IsString()
@IsNotEmpty()
automationUuid: string;
}