mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Replaces FluentValidation with the custom validation framework in the web project
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user