Skip to content

Commit d2cac28

Browse files
committed
fix: rm validation for CreateBenchmarkDto.maxCyclomaticComplexity
1 parent f85146f commit d2cac28

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/benchmarks/dto/create-benchmark.dto.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
22
import {
33
IsNotEmpty,
4-
IsNumber,
4+
IsNumberString,
55
IsOptional,
66
IsString,
7-
Max,
8-
Min,
97
} from 'class-validator';
108

119
export class CreateBenchmarkDto {
@@ -31,8 +29,10 @@ export class CreateBenchmarkDto {
3129
difficulty: string;
3230

3331
@IsNotEmpty()
34-
@IsNumber()
35-
@Min(1)
36-
@Max(100)
32+
@IsNumberString()
33+
// @Transform(parseInt)
34+
// @IsInt()
35+
// @Min(1)
36+
// @Max(100)
3737
maxCyclomaticComplexity: number;
3838
}

0 commit comments

Comments
 (0)