JsonSchemaExporter Class

Definition

Maps .NET types to JSON schema objects using contract metadata from JsonTypeInfo instances.

C#
public static class JsonSchemaExporter
Inheritance
JsonSchemaExporter

Methods

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Generates a JSON schema corresponding to the contract metadata of the specified type.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Generates a JSON schema corresponding to the specified contract metadata.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)