2022-12-07 14:05:11 +01:00
|
|
|
using FluentValidation;
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
namespace Finch.Configuration;
|
2022-12-07 14:05:11 +01:00
|
|
|
|
|
|
|
|
public abstract class OptionsType
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Type of the associated model class
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Type ContentType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The alias
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name of the options type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set a validator for the editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IValidator Validator { get; set; }
|
|
|
|
|
}
|