IpV6FormatValidator
Validator for "IpV6" format.
                using Newtonsoft.Json.Linq;
using System;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Validation.FormatValidators
{
    [System.Runtime.CompilerServices.NullableContext(1)]
    [System.Runtime.CompilerServices.Nullable(0)]
    public class IpV6FormatValidator : IFormatValidator
    {
        public string Format { get; } = "ipv6";
        public ValidationErrorKind ValidationErrorKind { get; } = ValidationErrorKind.IpV6Expected;
        public bool IsValid(string value, JTokenType tokenType)
        {
            return Uri.CheckHostName(value) == UriHostNameType.IPv6;
        }
    }
}