forked from Yara724/api
11 lines
313 B
TypeScript
11 lines
313 B
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { IsIn, IsString } from "class-validator";
|
|
|
|
export class CreateRegistrarInitiatedFileDto {
|
|
@ApiProperty({ enum: ["THIRD_PARTY", "CAR_BODY"], example: "THIRD_PARTY" })
|
|
@IsString()
|
|
@IsIn(["THIRD_PARTY", "CAR_BODY"])
|
|
type: "THIRD_PARTY" | "CAR_BODY";
|
|
}
|
|
|