Share via


OpenApiOptions.CreateDefaultSchemaReferenceId(JsonTypeInfo) Method

Definition

A default implementation for creating a schema reference ID for a given JsonTypeInfo.

public static string? CreateDefaultSchemaReferenceId (System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member CreateDefaultSchemaReferenceId : System.Text.Json.Serialization.Metadata.JsonTypeInfo -> string
Public Shared Function CreateDefaultSchemaReferenceId (jsonTypeInfo As JsonTypeInfo) As String

Parameters

jsonTypeInfo
JsonTypeInfo

The JsonTypeInfo associated with the schema we are generating a reference ID for.

Returns

The reference ID to use for the schema or null if the schema should always be inlined.

Applies to