JsonSchemaPatternPropertiesAttribute
using System;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Annotations
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public class JsonSchemaPatternPropertiesAttribute : Attribute
{
public string RegularExpression { get; }
[System.Runtime.CompilerServices.Nullable(2)]
[field: System.Runtime.CompilerServices.Nullable(2)]
public Type Type {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
public JsonSchemaPatternPropertiesAttribute(string regularExpression)
: this(regularExpression, null)
{
}
public JsonSchemaPatternPropertiesAttribute(string regularExpression, [System.Runtime.CompilerServices.Nullable(2)] Type type)
{
RegularExpression = regularExpression;
Type = type;
}
}
}