<PackageReference Include="NJsonSchema" Version="11.0.0" />

IFormatValidator

public interface IFormatValidator
Provides a method to verify if value is of valid format.
using Newtonsoft.Json.Linq; using System.Runtime.CompilerServices; namespace NJsonSchema.Validation.FormatValidators { [System.Runtime.CompilerServices.NullableContext(1)] public interface IFormatValidator { ValidationErrorKind ValidationErrorKind { get; } string Format { get; } bool IsValid(string value, JTokenType tokenType); } }