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

export class PlanFeatureDto {
  @ApiProperty({ example: 'coupons' })
  @IsString()
  @MinLength(1)
  @MaxLength(60)
  k!: string;

  @ApiProperty({ example: 'Unlimited' })
  @IsString()
  @MinLength(0)
  @MaxLength(200)
  v!: string;
}
