20 lines
507 B
TypeScript
20 lines
507 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class SetCarDeliveryDto {
|
|
@ApiProperty({ description: 'Car model', example: 'Toyota Camry' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
carModel!: string;
|
|
|
|
@ApiProperty({ description: 'Car color', example: 'White' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
carColor!: string;
|
|
|
|
@ApiProperty({ description: 'License plate number', example: '12ABC345' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
plateNumber!: string;
|
|
}
|