Base64FormatValidator
Validator for "Base64" format.
                using Newtonsoft.Json.Linq;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Validation.FormatValidators
{
    [System.Runtime.CompilerServices.NullableContext(1)]
    [System.Runtime.CompilerServices.Nullable(0)]
    public class Base64FormatValidator : IFormatValidator
    {
        private readonly ByteFormatValidator _byteFormatValidator = new ByteFormatValidator();
        public string Format { get; } = "base64";
        public ValidationErrorKind ValidationErrorKind { get; } = ValidationErrorKind.Base64Expected;
        public bool IsValid(string value, JTokenType tokenType)
        {
            return _byteFormatValidator.IsValid(value, tokenType);
        }
    }
}