Skip to content
Snippets Groups Projects
Commit 9a29a48e authored by Boyan Tsolov's avatar Boyan Tsolov
Browse files

fix: possibly validateif needs to be for every single decorator

parent cc6f2a97
No related branches found
No related tags found
1 merge request!44Preparations for ui
Pipeline #66532 waiting for manual action with stages
in 21 minutes and 26 seconds
This commit is part of merge request !43. Comments created here will be created in the context of that merge request.
...@@ -2,13 +2,15 @@ import { IsNotEmpty, IsString, ValidateIf } from "class-validator"; ...@@ -2,13 +2,15 @@ import { IsNotEmpty, IsString, ValidateIf } from "class-validator";
export class ProofReqDto { export class ProofReqDto {
@ValidateIf((o) => o.proofUrl === undefined)
@IsString() @IsString()
@IsNotEmpty()
@ValidateIf((o) => o.proofUrl === undefined) @ValidateIf((o) => o.proofUrl === undefined)
@IsNotEmpty()
proofRecordId: string; proofRecordId: string;
@ValidateIf((o) => o.proofRecordId === undefined)
@IsString() @IsString()
@IsNotEmpty()
@ValidateIf((o) => o.proofRecordId === undefined) @ValidateIf((o) => o.proofRecordId === undefined)
@IsNotEmpty()
proofUrl: string; proofUrl: string;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment