using FluentValidation;

namespace DocumentOperator.Application.ValidatePdfA.Validators;

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