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; }