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 59public Func<JsonTypeInfo, string?> CreateSchemaReferenceId { get; set; } = CreateDefaultSchemaReferenceId;
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\CreateSchemaReferenceIdTests.cs (4)
68var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? $"{type.Type.Name}Schema" : OpenApiOptions.CreateDefaultSchemaReferenceId(type) }; 117var options = new OpenApiOptions { CreateSchemaReferenceId = (type) => type.Type.Name == "Todo" ? null : OpenApiOptions.CreateDefaultSchemaReferenceId(type) }; 173return OpenApiOptions.CreateDefaultSchemaReferenceId(type); 216return OpenApiOptions.CreateDefaultSchemaReferenceId(type);