using DocumentOperator.Application.SwissQrCode.Queries;
using FluentValidation;

namespace DocumentOperator.Application.SwissQrCode.Queries;

/// <summary>
/// Validates ExtractSwissQrCodeQuery before handler execution.
/// Ensures PdfStream is not null.
/// </summary>
public sealed class ExtractSwissQrCodeQueryValidator : AbstractValidator<ExtractSwissQrCodeQuery>
{
    public ExtractSwissQrCodeQueryValidator()
    {
        // Rule: PdfStream must be provided
        RuleFor(x => x.PdfStream)
            .NotNull()
            .WithMessage("PdfStream is required");
    }
}
