Replaces FluentValidation with the custom validation framework in the web project

This commit is contained in:
BinaryAlley committed 2026-08-19 10:25:28 -07:00
1 parent 587daaabb7
commit 57e8e2ed65
19 files changed
+1020 -104

No files matched your search

@@ -0,0 +1,20 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Primitives;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Validation;
/// <summary>
/// Interface for validating instances of a specific type.
/// </summary>
/// <typeparam name="TRequest">The type of the instance to be validated.</typeparam>
public interface IValidator<in TRequest>
{
/// <summary>
/// Validates the specified request instance against the defined rules.
/// </summary>
/// <param name="instance">The request instance to validate.</param>
/// <returns>A list of validation errors. If the instance is valid, the list will be empty.</returns>
List<Error> Validate(TRequest instance);
}