mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 03:24:53 +00:00
fixed automation dto
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user