import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

/**
 * DTO used to update the view or type of a menu.
 *
 * Ensures that a valid menu type is provided for updating.
 */
export class UpdateMenuViewDto {
  /**
   * Type of the menu to be updated.
   *
   * Required field:
   * - Must be a non-empty string.
   * - Represents the category or view type of the menu.
   */
  @ApiProperty()
  @IsNotEmpty() // Ensures the field is provided
  @IsString() // Must be a string
  menu_type: string;
}
