OpenApiOptions.CreateSchemaReferenceId Property

Definition

A delegate to determine how reference IDs should be created for schemas associated with types in the given OpenAPI document.

C#
public Func<System.Text.Json.Serialization.Metadata.JsonTypeInfo,string?> CreateSchemaReferenceId { get; set; }

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.

Applies to

Product Versions
ASP.NET Core 9.0