JsonSchemaExporter.GetJsonSchemaAsNode 메서드

정의

오버로드

Name Description
GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

지정된 계약 메타데이터에 해당하는 JSON 스키마를 생성합니다.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

지정된 형식의 계약 메타데이터에 해당하는 JSON 스키마를 생성합니다.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Source:
JsonSchemaExporter.cs
Source:
JsonSchemaExporter.cs
Source:
JsonSchemaExporter.cs
Source:
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 개체입니다.

반품

에 대한 JSON 스키마를 정의하는 새 JsonNode 인스턴스입니다 typeInfo.

예외

지정된 매개 변수 중 하나는 .입니다 null.

매개 변수에는 typeInfo 지원되지 않는 exporterOptions가 포함됩니다.

적용 대상

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Source:
JsonSchemaExporter.cs
Source:
JsonSchemaExporter.cs
Source:
JsonSchemaExporter.cs
Source:
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 개체입니다.

반품

에 대한 JSON 스키마를 정의하는 새 JsonNode 인스턴스입니다 type.

예외

지정된 매개 변수 중 하나는 .입니다 null.

매개 변수에는 options 지원되지 않는 exporterOptions가 포함됩니다.

적용 대상