JsonSchemaExporter.GetJsonSchemaAsNode メソッド

定義

オーバーロード

名前 説明
GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

指定したコントラクト メタデータに対応する JSON スキーマを生成します。

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

指定した型のコントラクト メタデータに対応する JSON スキーマを生成します。

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs

指定したコントラクト メタデータに対応する JSON スキーマを生成します。

public static System.Text.Json.Nodes.JsonNode GetJsonSchemaAsNode(this System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, System.Text.Json.Schema.JsonSchemaExporterOptions? exporterOptions = default);
static member GetJsonSchemaAsNode : System.Text.Json.Serialization.Metadata.JsonTypeInfo * System.Text.Json.Schema.JsonSchemaExporterOptions -> System.Text.Json.Nodes.JsonNode
<Extension()>
Public Function GetJsonSchemaAsNode (typeInfo As JsonTypeInfo, Optional exporterOptions As JsonSchemaExporterOptions = Nothing) As JsonNode

パラメーター

typeInfo
JsonTypeInfo

スキーマを生成するコントラクト メタデータ。

exporterOptions
JsonSchemaExporterOptions

スキーマの生成を制御する exporterOptions オブジェクト。

返品

typeInfoの JSON スキーマを定義する新しいJsonNode インスタンス。

例外

指定したパラメーターの 1 つが null

typeInfo パラメーターには、サポートされていない exporterOptions が含まれています。

適用対象

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs
ソース:
JsonSchemaExporter.cs

指定した型のコントラクト メタデータに対応する JSON スキーマを生成します。

public static System.Text.Json.Nodes.JsonNode GetJsonSchemaAsNode(this System.Text.Json.JsonSerializerOptions options, Type type, System.Text.Json.Schema.JsonSchemaExporterOptions? exporterOptions = default);
static member GetJsonSchemaAsNode : System.Text.Json.JsonSerializerOptions * Type * System.Text.Json.Schema.JsonSchemaExporterOptions -> System.Text.Json.Nodes.JsonNode
<Extension()>
Public Function GetJsonSchemaAsNode (options As JsonSerializerOptions, type As Type, Optional exporterOptions As JsonSchemaExporterOptions = Nothing) As JsonNode

パラメーター

options
JsonSerializerOptions

コントラクト メタデータの解決元となるオプション インスタンス。

type
Type

JSON スキーマを生成するルート型。

exporterOptions
JsonSchemaExporterOptions

スキーマの生成を制御する exporterOptions オブジェクト。

返品

typeの JSON スキーマを定義する新しいJsonNode インスタンス。

例外

指定したパラメーターの 1 つが null

options パラメーターには、サポートされていない exporterOptions が含まれています。

適用対象