// ========================================================================== // UpdateField.cs // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex Group // All rights reserved. // ========================================================================== using System.Collections.Generic; using Squidex.Core.Schemas; using Squidex.Infrastructure; namespace Squidex.Write.Schemas.Commands { public class UpdateField : AppCommand, IValidatable { public long FieldId { get; set; } public FieldProperties Properties { get; set; } public void Validate(IList errors) { if (Properties == null) { errors.Add(new ValidationError("Properties must be defined.", nameof(Properties))); } } } }