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