OpenApiOptions.CreateSchemaReferenceId Property
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 delegate to determine how reference IDs should be created for schemas associated with types in the given OpenAPI document.
public Func<System.Text.Json.Serialization.Metadata.JsonTypeInfo,string?> CreateSchemaReferenceId { get; set; }
member this.CreateSchemaReferenceId : Func<System.Text.Json.Serialization.Metadata.JsonTypeInfo, string> with get, set
Public Property CreateSchemaReferenceId As Func(Of JsonTypeInfo, String)
Property Value
Remarks
The default implementation uses the CreateDefaultSchemaReferenceId(JsonTypeInfo) method to generate reference IDs. When the provided delegate returns null
, the schema associated with the JsonTypeInfo will always be inlined.