JsonSchemaFlattenAttribute
Annotation to merge all inherited properties into this class/schema.
using System;
namespace NJsonSchema.Annotations
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public class JsonSchemaFlattenAttribute : Attribute
{
public bool Flatten { get; }
public JsonSchemaFlattenAttribute()
{
Flatten = true;
}
public JsonSchemaFlattenAttribute(bool flatten)
{
Flatten = flatten;
}
}
}