#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Primitives;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Web.Common.Validation;
///
/// Interface for validating instances of a specific type.
///
/// The type of the instance to be validated.
public interface IValidator
{
///
/// Validates the specified request instance against the defined rules.
///
/// The request instance to validate.
/// A list of validation errors. If the instance is valid, the list will be empty.
List Validate(TRequest instance);
}