2 instantiations of JsonDerivedType
System.Text.Json (2)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
108
derivedTypes.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)
374
foreach (
var
derivedType in polymorphismOptions.DerivedTypes)
Services\Schemas\OpenApiSchemaService.cs (1)
187
foreach (
var
derivedType in jsonTypeInfo.PolymorphismOptions.DerivedTypes)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
102
List<
JsonDerivedType
> derivedTypes = new(polyOptions.DerivedTypes);
117
foreach (
JsonDerivedType
derivedType in derivedTypes)
397
foreach (
JsonDerivedType
derivedType in typeInfo.PolymorphismOptions.DerivedTypes)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
30
public IList<
JsonDerivedType
> DerivedTypes => _derivedTypes ??= new(this);
88
private sealed class DerivedTypeList : ConfigurationList<
JsonDerivedType
>