Skip to content
Snippets Groups Projects

chore: abstract dtos to encompass a wider range of use cases and fix for out of band proof requests

Closed Boyan Tsolov requested to merge core-dtos into main
All threads resolved!
1 file
+ 5
2
Compare changes
  • Side-by-side
  • Inline
import { IsNotEmpty, IsString } from "class-validator";
import { IsNotEmpty, IsString, ValidateIf } from "class-validator";
// INFO: should cover:
@@ -10,8 +10,11 @@ import { IsNotEmpty, IsString } from "class-validator";
export class ProofReqDto {
@IsString()
@IsNotEmpty()
@ValidateIf((o) => o.proofUrl === undefined)
proofRecordId: string;
@IsString()
proofUrl?: string;
@IsNotEmpty()
@ValidateIf((o) => o.proofUrl === undefined)
proofUrl: string;
}
\ No newline at end of file
Loading