Adhered to linting rules configuration models, validators and tests.

This commit is contained in:
Andy Butland
2020-12-06 10:46:04 +01:00
parent 61cbb84dd3
commit 9f8138b2d0
45 changed files with 840 additions and 173 deletions

View File

@@ -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; }
}