System.Text.Json.Schema.JsonSchemaExporter
Maps .NET types to JSON schema objects using contract metadata from JsonTypeInfo instances.
namespace System.Text.Json.Schema
{
public static class JsonSchemaExporter
{
public static JsonNode GetJsonSchemaAsNode(this JsonSerializerOptions options, Type type, JsonSchemaExporterOptions exporterOptions = null);
public static JsonNode GetJsonSchemaAsNode(this JsonTypeInfo typeInfo, JsonSchemaExporterOptions exporterOptions = null);
}
}