11 lines
316 B
TypeScript
11 lines
316 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsOptional, IsString } from 'class-validator';
|
|
|
|
export class SetDescriptionDto {
|
|
@ApiProperty({ description: 'Cart description or notes', required: false, example: 'Please deliver to the back door' })
|
|
@IsOptional()
|
|
@IsString()
|
|
description?: string;
|
|
}
|
|
|