// ========================================================================== // AddFieldDto.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using System.ComponentModel.DataAnnotations; namespace Squidex.Areas.Api.Controllers.Schemas.Models { public sealed class AddFieldDto { /// /// The name of the field. Must be unique within the schema. /// [Required] [RegularExpression("^[a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)*$")] public string Name { get; set; } /// /// Determines the optional partitioning of the field. /// public string Partitioning { get; set; } /// /// The field properties. /// [Required] public FieldPropertiesDto Properties { get; set; } } }