We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5979f1b commit 1b7aca9Copy full SHA for 1b7aca9
src/builds/dto/build-create.dto.ts
@@ -1,9 +1,11 @@
1
import { ApiProperty } from '@nestjs/swagger';
2
-import { IsString, IsOptional } from 'class-validator';
+import { IsString, IsOptional, IsNotEmpty } from 'class-validator';
3
4
export class CreateBuildDto {
5
@ApiProperty()
6
@IsOptional()
7
+ @IsString()
8
+ @IsNotEmpty()
9
readonly ciBuildId?: string;
10
11
0 commit comments