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.
29 lines
888 B
29 lines
888 B
// ==========================================================================
|
|
// 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<ValidationError> errors)
|
|
{
|
|
if (Properties == null)
|
|
{
|
|
errors.Add(new ValidationError("Properties must be defined.", nameof(Properties)));
|
|
}
|
|
}
|
|
}
|
|
}
|