src/models/dto/edit-model.dto.ts
Properties |
| name |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/models/dto/edit-model.dto.ts:13
|
| projectId |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/models/dto/edit-model.dto.ts:8
|
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;
}