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
2 files
+ 1446
1270
Compare changes
  • Side-by-side
  • Inline
Files
2
import { IsArray, IsNotEmpty, IsString, Matches, ValidateNested } from "class-validator";
import { ArrayMinSize, IsArray, IsNotEmpty, IsString, Matches, ValidateNested } from "class-validator";
export class CreateSchemaRequestDto {
//@example "my test schema"
@@ -9,6 +9,7 @@ export class CreateSchemaRequestDto {
//@example ['first_name, last_name']
@IsNotEmpty()
@IsArray()
@ArrayMinSize(1)
@ValidateNested({ each: true })
@IsString()
attributes: string[];
Loading