11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsNumber, Min } from 'class-validator';
|
|
|
|
export class UpdateItemQuantityDto {
|
|
@ApiProperty({ description: 'Quantity of the food item', example: 2, minimum: 1 })
|
|
@IsNotEmpty()
|
|
@IsNumber()
|
|
@Min(1)
|
|
quantity!: number;
|
|
}
|