8 references to DerivedTypes
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (2)
374
foreach (var derivedType in polymorphismOptions.
DerivedTypes
)
421
&& !polymorphismOptions.
DerivedTypes
.Any(type => type.DerivedType == context.TypeInfo.Type);
Services\Schemas\OpenApiSchemaService.cs (1)
187
foreach (var derivedType in jsonTypeInfo.PolymorphismOptions.
DerivedTypes
)
System.Text.Json (5)
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
97
if (parentPolymorphicTypeInfo is null && typeInfo.PolymorphismOptions is {
DerivedTypes
.Count: > 0 } polyOptions)
102
List<JsonDerivedType> derivedTypes = new(polyOptions.
DerivedTypes
);
397
foreach (JsonDerivedType derivedType in typeInfo.PolymorphismOptions.
DerivedTypes
)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (1)
117
(options ??= new()).
DerivedTypes
.Add(new JsonDerivedType(attr.DerivedType, attr.TypeDiscriminator));
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
35
foreach ((Type derivedType, object? typeDiscriminator) in polymorphismOptions.
DerivedTypes
)