src/compliance/dto/evidence.dto.ts
Properties |
| description |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/compliance/dto/evidence.dto.ts:13
|
| name |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/compliance/dto/evidence.dto.ts:8
|
| projectId |
Type : number
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/compliance/dto/evidence.dto.ts:18
|
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber, IsString } from "class-validator";
export class ComplianceEvidenceDto {
@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
name: string;
@IsNotEmpty()
@IsString()
@ApiProperty({ required: true })
description: string;
@IsNotEmpty()
@IsNumber()
@ApiProperty({ required: true })
projectId: number;
// uploadedBy is attached in the controller
}