mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
// ==========================================================================
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// The name of the field. Must be unique within the schema.
|
|
/// </summary>
|
|
[Required]
|
|
[RegularExpression("^[a-zA-Z0-9]+(\\-[a-zA-Z0-9]+)*$")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines if the field is hidden.
|
|
/// </summary>
|
|
public bool IsHidden { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines if the field is locked.
|
|
/// </summary>
|
|
public bool IsLocked { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines if the field is disabled.
|
|
/// </summary>
|
|
public bool IsDisabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// The field properties.
|
|
/// </summary>
|
|
[Required]
|
|
public FieldPropertiesDto Properties { get; set; }
|
|
}
|
|
}
|