JsonSchemaExporter.GetJsonSchemaAsNode Método

Definición

Sobrecargas

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Obtiene el esquema JSON de typeInfo como un documento de JsonNode.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Obtiene el esquema JSON de type como un documento de JsonNode.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Obtiene el esquema JSON de typeInfo como un documento de JsonNode.

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

Parámetros

typeInfo
JsonTypeInfo

Contrato desde el que se va a resolver el esquema JSON.

exporterOptions
JsonSchemaExporterOptions

Objeto de opciones que rige la operación de exportación.

Devoluciones

Objeto JSON que contiene el esquema para typeInfo.

Se aplica a

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Obtiene el esquema JSON de type como un documento de JsonNode.

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

Parámetros

options
JsonSerializerOptions

Opciones que declaran el contrato para el tipo.

type
Type

Tipo para el que se va a resolver un esquema.

exporterOptions
JsonSchemaExporterOptions

Objeto de opciones que rige la operación de exportación.

Devoluciones

Objeto JSON que contiene el esquema para type.

Se aplica a