JsonSchemaVisitorBase
Visitor to transform an object with  JsonSchema objects.
                using NJsonSchema.References;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Visitors
{
    [System.Runtime.CompilerServices.NullableContext(1)]
    [System.Runtime.CompilerServices.Nullable(0)]
    public abstract class JsonSchemaVisitorBase : JsonReferenceVisitorBase
    {
        protected abstract JsonSchema VisitSchema(JsonSchema schema, string path, [System.Runtime.CompilerServices.Nullable(2)] string typeNameHint);
        protected override IJsonReference VisitJsonReference(IJsonReference reference, string path, [System.Runtime.CompilerServices.Nullable(2)] string typeNameHint)
        {
            JsonSchema jsonSchema = reference as JsonSchema;
            if (jsonSchema != null)
                return VisitSchema(jsonSchema, path, typeNameHint);
            return reference;
        }
    }
}