Skip to content

Commit 1b7aca9

Browse files
committed
ciBuildId validation added
1 parent 5979f1b commit 1b7aca9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/builds/dto/build-create.dto.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { ApiProperty } from '@nestjs/swagger';
2-
import { IsString, IsOptional } from 'class-validator';
2+
import { IsString, IsOptional, IsNotEmpty } from 'class-validator';
33

44
export class CreateBuildDto {
55
@ApiProperty()
66
@IsOptional()
7+
@IsString()
8+
@IsNotEmpty()
79
readonly ciBuildId?: string;
810

911
@ApiProperty()

0 commit comments

Comments
 (0)