<PackageReference Include="System.Text.Json" Version="9.0.0" />

JsonSchemaExporterOptions

public sealed class JsonSchemaExporterOptions
Configures the behavior of the JsonSchemaExporter APIs.
public static JsonSchemaExporterOptions Default { get; }

Gets the default configuration object used by JsonSchemaExporter.

Defines a callback that is invoked for every schema that is generated within the type graph.

public bool TreatNullObliviousAsNonNullable { get; set; }

Determines whether non-nullable schemas should be generated for null oblivious reference types.