import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty, IsOptional, IsString } from "class-validator"

export class GenerateUploadUrlDto {
  @ApiProperty({
    example: "document.pdf",
    description: "The filename for the PDF document",
  })
  @IsNotEmpty()
  @IsString()
  filename: string

  @ApiProperty({
    example: "application/pdf",
    description: "The MIME type of the file (default: application/pdf)",
    required: false,
    default: "application/pdf",
  })
  @IsOptional()
  @IsString()
  contentType?: string
}
