File size: 220 Bytes
1fe7075
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { IsString, IsUUID, Matches, MaxLength } from 'class-validator';

export class CreateGenerationDto {
  @IsUUID()
  userId: string;

  @IsString()
  @MaxLength(64)
  @Matches(/^[A-Za-z0-9_-]+$/)
  jobId: string;
}