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.
35 lines
1.1 KiB
35 lines
1.1 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using Squidex.Infrastructure;
|
|
|
|
namespace Squidex.Domain.Apps.Core.Schemas
|
|
{
|
|
[TypeName("JsonField")]
|
|
public sealed class JsonFieldProperties : FieldProperties
|
|
{
|
|
public override T Accept<T>(IFieldPropertiesVisitor<T> visitor)
|
|
{
|
|
return visitor.Visit(this);
|
|
}
|
|
|
|
public override T Accept<T>(IFieldVisitor<T> visitor, IField field)
|
|
{
|
|
return visitor.Visit((IField<JsonFieldProperties>)field);
|
|
}
|
|
|
|
public override RootField CreateRootField(long id, string name, Partitioning partitioning)
|
|
{
|
|
return Fields.Json(id, name, partitioning, this);
|
|
}
|
|
|
|
public override NestedField CreateNestedField(long id, string name)
|
|
{
|
|
return Fields.Json(id, name, this);
|
|
}
|
|
}
|
|
}
|
|
|