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

JsonSchemaReferenceUtilities

public static class JsonSchemaReferenceUtilities
Provides utilities to resolve and set JSON schema references.
public static string ConvertJsonReferences(string data)

Converts JSON references ($ref) to property references.

public static string ConvertPropertyReferences(string data)

Converts property references to JSON references ($ref).

public static void UpdateSchemaReferencePaths(object rootObject)

Updates the SchemaReferencePath properties from the available SchemaReference properties.

public static Task UpdateSchemaReferencesAsync(object rootObject, JsonReferenceResolver referenceResolver)

Updates all SchemaReference properties from the available SchemaReferencePath properties.