using FluentValidation; namespace ColaFlow.Modules.ProjectManagement.Application.Commands.UpdateProject; /// /// Validator for UpdateProjectCommand /// public class UpdateProjectCommandValidator : AbstractValidator { public UpdateProjectCommandValidator() { RuleFor(x => x.ProjectId) .NotEmpty() .WithMessage("ProjectId is required"); RuleFor(x => x.Name) .NotEmpty() .WithMessage("Project name is required") .MaximumLength(200) .WithMessage("Project name cannot exceed 200 characters"); RuleFor(x => x.Description) .MaximumLength(2000) .WithMessage("Project description cannot exceed 2000 characters"); } }