using FluentValidation;

namespace DocumentOperator.Application.CheckPdfAttachments.Queries;

/// <summary>
/// Validator for CheckPdfAttachmentsQuery
/// Ensures PdfStream is not null
/// </summary>
public class CheckPdfAttachmentsQueryValidator : AbstractValidator<CheckPdfAttachmentsQuery>
{
    public CheckPdfAttachmentsQueryValidator()
    {
        // Rule: PdfStream must be provided and non-empty
        RuleFor(x => x.PdfStream)
            .NotNull()
            .WithMessage("PdfStream is required");
    }
}
