refactor: strengthen client boundaries and quality gates
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { IsIn, IsOptional, IsString, Matches, MaxLength } from 'class-validator';
|
||||
|
||||
export class ClientFileUploadDto {
|
||||
@IsString()
|
||||
@IsIn(['enterprise_certification', 'signature_report_material', 'drainage_report_material'])
|
||||
purpose!: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(256)
|
||||
@Matches(/^[a-zA-Z0-9_-]+(?:\/[a-zA-Z0-9_-]+)*$/)
|
||||
prefix?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user