Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
21
Vendor/Swan.Lite-3.1.0/Validators/IValidator.cs
vendored
Normal file
21
Vendor/Swan.Lite-3.1.0/Validators/IValidator.cs
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace Swan.Validators
|
||||
{
|
||||
/// <summary>
|
||||
/// A simple Validator interface.
|
||||
/// </summary>
|
||||
public interface IValidator
|
||||
{
|
||||
/// <summary>
|
||||
/// The error message.
|
||||
/// </summary>
|
||||
string ErrorMessage { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Checks if a value is valid.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type.</typeparam>
|
||||
/// <param name="value"> The value.</param>
|
||||
/// <returns>True if it is valid.False if it is not.</returns>
|
||||
bool IsValid<T>(T value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user