Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 7x 7x 7x 7x 7x | import {
IsNotEmpty,
IsNumber,
IsOptional,
IsString,
Min,
} from 'class-validator';
export class RunCommandArgsDto {
@IsString({ message: 'command_string must be a string.' })
@IsNotEmpty({ message: 'command_string must not be empty.' })
command_string: string;
@IsOptional()
@IsString({ message: 'reason must be a string.' })
reason?: string;
@IsOptional()
@IsNumber({}, { message: 'timeout must be a number.' })
@Min(1000, { message: 'timeout must be at least 1000ms (1 second).' })
timeout?: number;
}
|