Skip to content

Commit b24a3b3

Browse files
feat: Removed the IsGreaterThan validation in Dto for max value (#967)
2 parents c4621bf + d16b2b6 commit b24a3b3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

apps/api/src/app/column/dtos/column-request.dto.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { Type } from 'class-transformer';
1515

1616
import { ValidationTypesEnum } from '@impler/client';
1717
import { IsValidRegex } from '@shared/framework/is-valid-regex.validator';
18-
import { IsGreaterThan } from '@shared/framework/is-greator-than.validator';
1918
import { IsNumberOrString } from '@shared/framework/number-or-string.validator';
2019
import { ColumnDelimiterEnum, ColumnTypesEnum, Defaults } from '@impler/shared';
2120

@@ -48,9 +47,6 @@ export class ValidationDto {
4847
})
4948
@IsNumber()
5049
@IsOptional()
51-
@IsGreaterThan('min', {
52-
message: 'max must be greater than min',
53-
})
5450
max?: number;
5551

5652
@ApiPropertyOptional({

0 commit comments

Comments
 (0)