<PackageReference Include="System.Text.Json" Version="10.0.0-rc.2.25502.107" />

JsonSchemaExporterContext

Defines the context in which a JSON schema within a type graph is being generated.
public JsonTypeInfo BaseTypeInfo { get; }

Gets the type info for the polymorphic base type if generated as a derived type.

public ReadOnlySpan<string> Path { get; }

Gets the path to the schema document currently being generated.

Gets the JsonPropertyInfo if the schema is being generated for a property.

public JsonTypeInfo TypeInfo { get; }

Gets the JsonTypeInfo for the type being processed.