Merge pull request 'feat: update validation otp cancel reconciliation' (#153) from feat/otp-cancel into development
Reviewed-on: #153pull/157/head 1.6.18-alpha.2
commit
8fb8aac0f9
|
@ -1,5 +1,5 @@
|
|||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
import { IsString, ValidateIf } from 'class-validator';
|
||||
|
||||
export class OtpVerifyDto {
|
||||
@ApiProperty({
|
||||
|
@ -9,6 +9,6 @@ export class OtpVerifyDto {
|
|||
example: '2345',
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@ValidateIf((body) => body.otp_code)
|
||||
otp_code: string;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue