OpenApiOptions.CreateDefaultSchemaReferenceId(JsonTypeInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.