File

src/models/dto/edit-model.dto.ts

Index

Properties

Properties

name
Type : string
Decorators :
@IsNotEmpty()
@IsString({message: 'Model name is required to update.'})
@ApiProperty({required: true})
projectId
Type : string
Decorators :
@IsNotEmpty()
@IsString({message: 'Project ID is required to update.'})
@ApiProperty({required: true})
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString } from "class-validator";

export class EditModelDto {
  @IsNotEmpty()
  @IsString({ message: "Project ID is required to update." })
  @ApiProperty({ required: true })
  projectId: string;

  @IsNotEmpty()
  @IsString({ message: "Model name is required to update." })
  @ApiProperty({ required: true })
  name: string;
}

results matching ""

    No results matching ""