import { IsString, IsOptional, IsObject, MaxLength } from 'class-validator'; import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class CreateBetterChatConfigDto { @ApiProperty({ example: 'Default Chat Config' }) @IsString() @MaxLength(100) config_name: string; @ApiPropertyOptional({ example: 'Standard BetterChat settings' }) @IsString() @IsOptional() description?: string; @ApiPropertyOptional() @IsObject() @IsOptional() config_data?: Record; }