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!
Compare and Show latest version
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -2,13 +2,15 @@ import { IsNotEmpty, IsString, ValidateIf } from "class-validator";
export class ProofReqDto {
@ValidateIf((o) => o.proofUrl === undefined)
@IsString()
@IsNotEmpty()
@ValidateIf((o) => o.proofUrl === undefined)
@IsNotEmpty()
proofRecordId: string;
@ValidateIf((o) => o.proofRecordId === undefined)
@IsString()
@IsNotEmpty()
@ValidateIf((o) => o.proofRecordId === undefined)
@IsNotEmpty()
proofUrl: string;
}
\ No newline at end of file
Loading