JsonSchemaExporter.GetJsonSchemaAsNode Metodo

Definizione

Overload

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Ottiene lo schema JSON per typeInfo come documento di JsonNode.

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Ottiene lo schema JSON per type come documento di JsonNode.

GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions)

Ottiene lo schema JSON per typeInfo come documento di 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

Parametri

typeInfo
JsonTypeInfo

Contratto da cui risolvere lo schema JSON.

exporterOptions
JsonSchemaExporterOptions

Oggetto options che controlla l'operazione di esportazione.

Restituisce

Oggetto JSON contenente lo schema per typeInfo.

Si applica a

GetJsonSchemaAsNode(JsonSerializerOptions, Type, JsonSchemaExporterOptions)

Ottiene lo schema JSON per type come documento di 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

Parametri

options
JsonSerializerOptions

Opzioni che dichiarano il contratto per il tipo.

type
Type

Tipo per il quale risolvere uno schema.

exporterOptions
JsonSchemaExporterOptions

Oggetto options che controlla l'operazione di esportazione.

Restituisce

Oggetto JSON contenente lo schema per type.

Si applica a