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

export class UpdateSettingDto {
  @ApiProperty({
    description: 'The unique key for the global setting.',
    example: 'MAX_WEBSITES_PER_ORG or MAX_WEBSITES_PER_ORG',
  })
  @IsString()
  @IsNotEmpty()
  key: string;

  @ApiProperty({
    description: 'The value for the setting. Must be a string (e.g., "10").',
    example: '10',
  })
  @IsString()
  @IsNotEmpty()
  value: string;
}