using FluentValidation;

public class TransitionStatusRequestValidator : AbstractValidator<TransitionStatusRequest>
{
    public TransitionStatusRequestValidator()
    {
        RuleFor(x => x.Status).IsInEnum();
        RuleFor(x => x.DischargeDiagnosis).MaximumLength(500)
            .When(x => x.DischargeDiagnosis is not null);
    }
}
