import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, Length } from 'class-validator';
import { CreatePostDto } from './create-post.dto';

export class CreateRepostDto {
  @ApiPropertyOptional({ maxLength: 2200, description: 'Optional quote text. Empty content creates a repost.' })
  @IsOptional()
  @IsString()
  @Length(0, 2200)
  content?: string;

  @ApiPropertyOptional({ enum: ['public', 'followers', 'private'] })
  @IsOptional()
  visibility?: CreatePostDto['visibility'];
}
