2 instantiations of JsonDerivedType
System.Text.Json (2)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
108derivedTypes.Add(new JsonDerivedType(typeInfo.Type));
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (1)
117(options ??= new()).DerivedTypes.Add(new JsonDerivedType(attr.DerivedType, attr.TypeDiscriminator));
7 references to JsonDerivedType
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
374foreach (var derivedType in polymorphismOptions.DerivedTypes)
Services\Schemas\OpenApiSchemaService.cs (1)
187foreach (var derivedType in jsonTypeInfo.PolymorphismOptions.DerivedTypes)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
102List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes); 117foreach (JsonDerivedType derivedType in derivedTypes) 397foreach (JsonDerivedType derivedType in typeInfo.PolymorphismOptions.DerivedTypes)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
30public IList<JsonDerivedType> DerivedTypes => _derivedTypes ??= new(this); 88private sealed class DerivedTypeList : ConfigurationList<JsonDerivedType>