JsonSchemaExtensionDataAttribute
Adds an extension data property to a class or property.
using System;
namespace NJsonSchema.Annotations
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = true)]
public class JsonSchemaExtensionDataAttribute : Attribute
{
public string Property { get; set; }
public object Value { get; set; }
public JsonSchemaExtensionDataAttribute(string property, object value)
{
Property = property;
Value = value;
}
}
}