// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System.ComponentModel.DataAnnotations;
namespace Squidex.Areas.Api.Controllers.Schemas.Models
{
public sealed class UpsertSchemaNestedFieldDto
{
///
/// 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; }
///
/// Defines if the field is hidden.
///
public bool IsHidden { get; set; }
///
/// Defines if the field is locked.
///
public bool IsLocked { get; set; }
///
/// Defines if the field is disabled.
///
public bool IsDisabled { get; set; }
///
/// The field properties.
///
[Required]
public FieldPropertiesDto Properties { get; set; }
}
}