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

export class ImportLootProfileDto {
  @ApiProperty({ example: 'Imported from Looty' })
  @IsString()
  @MaxLength(100)
  profile_name: string;

  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  description?: string;

  @ApiProperty({ description: 'BetterLoot LootTables.json content' })
  @IsObject()
  loot_table: Record<string, any>;

  @ApiPropertyOptional({ description: 'BetterLoot LootGroups.json content' })
  @IsObject()
  @IsOptional()
  loot_groups?: Record<string, any>;
}
