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.
28 lines
821 B
28 lines
821 B
// ==========================================================================
|
|
// JsonFieldProperties.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json.Linq;
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Core.Schemas
|
|
{
|
|
[TypeName(nameof(JsonField))]
|
|
public sealed class JsonFieldProperties : FieldProperties
|
|
{
|
|
public override JToken GetDefaultValue()
|
|
{
|
|
return JValue.CreateNull();
|
|
}
|
|
|
|
protected override IEnumerable<ValidationError> ValidateCore()
|
|
{
|
|
yield break;
|
|
}
|
|
}
|
|
}
|
|
|