prevision / apps /prevision-api /src /generations /dto /create-generation.dto.ts
github-actions[bot]
Automated Deploy: 23110475c742a5d4f03930b55bca09042215c1dd
1fe7075
Raw History Blame Contribute Delete
220 Bytes
import { IsString, IsUUID, Matches, MaxLength } from 'class-validator';
export class CreateGenerationDto {
@IsUUID()
userId: string;
@IsString()
@MaxLength(64)
@Matches(/^[A-Za-z0-9_-]+$/)
jobId: string;
}