using FluentValidation; using ProposalSystem.Application.DTOs; namespace ProposalSystem.Application.Validators; // Fix: API-M5 — add FluentValidation for GeneratedPdf DTO public class CreateGeneratedPdfValidator : AbstractValidator { public CreateGeneratedPdfValidator() { RuleFor(x => x.ProposalId) .NotEmpty().WithMessage("Proposal ID is required"); RuleFor(x => x.S3Key) .NotEmpty().WithMessage("S3 key is required") .MaximumLength(1000); } }