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

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 Reference properties from the available Reference properties.

public static Task UpdateSchemaReferencesAsync(object rootObject, JsonReferenceResolver referenceResolver)

Updates all Reference properties from the available Reference properties.