13 instantiations of JsonSchemaExporterOptions
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
54private readonly JsonSchemaExporterOptions _configuration = new()
Microsoft.Extensions.AI.Abstractions.Tests (3)
test\Shared\JsonSchemaExporter\TestTypes.cs (3)
167ExporterOptions: new() { TreatNullObliviousAsNonNullable = true }); 327ExporterOptions: new() { TreatNullObliviousAsNonNullable = true }); 770ExporterOptions: new()
Shared.Tests (8)
JsonSchemaExporter\JsonSchemaExporterConfigurationTests.cs (2)
16JsonSchemaExporterOptions configuration = useSingleton ? JsonSchemaExporterOptions.Default : new(); 32JsonSchemaExporterOptions configuration = new() { TreatNullObliviousAsNonNullable = treatNullObliviousAsNonNullable };
JsonSchemaExporter\JsonSchemaExporterTests.cs (3)
59var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true }; 75var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true }; 125var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true };
JsonSchemaExporter\TestTypes.cs (3)
167ExporterOptions: new() { TreatNullObliviousAsNonNullable = true }); 327ExporterOptions: new() { TreatNullObliviousAsNonNullable = true }); 770ExporterOptions: new()
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporterOptions.cs (1)
16public static JsonSchemaExporterOptions Default { get; } = new();
20 references to JsonSchemaExporterOptions
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
54private readonly JsonSchemaExporterOptions _configuration = new()
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestData.cs (1)
17JsonSchemaExporterOptions? ExporterOptions = null,
Shared.Tests (11)
JsonSchemaExporter\JsonSchemaExporterConfigurationTests.cs (5)
16JsonSchemaExporterOptions configuration = useSingleton ? JsonSchemaExporterOptions.Default : new(); 24Assert.Same(JsonSchemaExporterOptions.Default, JsonSchemaExporterOptions.Default); 32JsonSchemaExporterOptions configuration = new() { TreatNullObliviousAsNonNullable = treatNullObliviousAsNonNullable };
JsonSchemaExporter\JsonSchemaExporterTests.cs (5)
34JsonNode schema = options.GetJsonSchemaAsNode(testData.Type, (JsonSchemaExporterOptions?)testData.ExporterOptions); 46JsonNode schema = options.GetJsonSchemaAsNode(testData.Type, (JsonSchemaExporterOptions?)testData.ExporterOptions); 59var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true }; 75var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true }; 125var config = new JsonSchemaExporterOptions { TreatNullObliviousAsNonNullable = true };
JsonSchemaExporter\TestData.cs (1)
17JsonSchemaExporterOptions? ExporterOptions = null,
System.Text.Json (7)
System\Text\Json\Schema\JsonSchema.cs (1)
151public JsonNode ToJsonNode(JsonSchemaExporterOptions options)
System\Text\Json\Schema\JsonSchemaExporter.cs (5)
27public static JsonNode GetJsonSchemaAsNode(this JsonSerializerOptions options, Type type, JsonSchemaExporterOptions? exporterOptions = null) 50public static JsonNode GetJsonSchemaAsNode(this JsonTypeInfo typeInfo, JsonSchemaExporterOptions? exporterOptions = null) 58exporterOptions ??= JsonSchemaExporterOptions.Default; 408private readonly ref struct GenerationState(JsonSerializerOptions options, JsonSchemaExporterOptions exporterOptions) 415public JsonSchemaExporterOptions ExporterOptions { get; } = exporterOptions;
System\Text\Json\Schema\JsonSchemaExporterOptions.cs (1)
16public static JsonSchemaExporterOptions Default { get; } = new();