File

src/compliance/dto/evidence.dto.ts

Index

Properties

Properties

description
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@ApiProperty({required: true})
name
Type : string
Decorators :
@IsNotEmpty()
@IsString()
@ApiProperty({required: true})
projectId
Type : number
Decorators :
@IsNotEmpty()
@IsNumber()
@ApiProperty({required: true})
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
}

results matching ""

    No results matching ""