using DocumentOperator.Application.ValidatePdf.Queries;
using FluentValidation;

namespace DocumentOperator.Application.ValidatePdf.Queries;

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