using FluentValidation;

namespace Baya.Application.Features.Verification.Commands.RequestDocumentUploadUrl;

// StepId is route-supplied (set via `command with { StepId = ... }`), so it is not validated here.
public sealed class RequestDocumentUploadUrlCommandValidator : AbstractValidator<RequestDocumentUploadUrlCommand>
{
    public RequestDocumentUploadUrlCommandValidator()
    {
        RuleFor(x => x.ContentType).NotEmpty().MaximumLength(100);
        RuleFor(x => x.FileName).MaximumLength(260);
    }
}
