Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
OpenApiOptions.CreateDefaultSchemaReferenceId(JsonTypeInfo) Method
Definition
- Namespace:
- Microsoft.AspNetCore.OpenApi
- Assembly:
- Microsoft.AspNetCore.OpenApi.dll
- Package:
- Microsoft.AspNetCore.OpenApi v10.0.0
- Package:
- Microsoft.AspNetCore.OpenApi v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.OpenApi v9.0.8
- Source:
- OpenApiOptions.cs
- Source:
- OpenApiOptions.cs
- Source:
- OpenApiOptions.cs
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.
Applies to
Feedback
Was this page helpful?
