Adhered to linting rules configuration models, validators and tests.
This commit is contained in:
@@ -1,22 +1,43 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
// Copyright (c) Umbraco.
|
||||
// See LICENSE for more details.
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Umbraco.Core.Configuration.Models.Validation;
|
||||
|
||||
namespace Umbraco.Core.Configuration.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Typed configuration options for image autofill upload settings.
|
||||
/// </summary>
|
||||
public class ImagingAutoFillUploadField : ValidatableEntryBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the alias of the image upload property.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Alias { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the width field alias of the image upload property.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string WidthFieldAlias { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the height field alias of the image upload property.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string HeightFieldAlias { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the length field alias of the image upload property.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string LengthFieldAlias { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the extension field alias of the image upload property.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string ExtensionFieldAlias { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user