6 references to CreateDefaultSchemaReferenceId
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiOptions.cs (2)
56
/// The default implementation uses the <see cref="
CreateDefaultSchemaReferenceId
"/> method to generate reference IDs. When
59
public Func<JsonTypeInfo, string?> CreateSchemaReferenceId { get; set; } =
CreateDefaultSchemaReferenceId
;
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\CreateSchemaReferenceIdTests.cs (4)
68
var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? $"{type.Type.Name}Schema" : OpenApiOptions.
CreateDefaultSchemaReferenceId
(type) };
117
var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? null : OpenApiOptions.
CreateDefaultSchemaReferenceId
(type) };
173
return OpenApiOptions.
CreateDefaultSchemaReferenceId
(type);
216
return OpenApiOptions.
CreateDefaultSchemaReferenceId
(type);