4 writes to DerivedType
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (4)
19DerivedType = derivedType; 30DerivedType = derivedType; 41DerivedType = derivedType; 48DerivedType = derivedType;
12 references to DerivedType
Microsoft.AspNetCore.OpenApi (4)
Extensions\JsonNodeSchemaExtensions.cs (3)
449var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 512&& !polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type); 524&& polymorphismOptions.DerivedTypes.Any(type => type.DerivedType == context.TypeInfo.Type && type.TypeDiscriminator is not null);
Services\Schemas\OpenApiSchemaService.cs (1)
537var derivedJsonTypeInfo = _jsonSerializerOptions.GetTypeInfo(derivedType.DerivedType);
System.Text.Json (8)
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
125JsonTypeInfo derivedTypeInfo = typeInfo.Options.GetTypeInfoInternal(derivedType.DerivedType); 510if (derivedType.DerivedType == typeInfo.Type)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (5)
209if (entry.DerivedType is null || !entry.DerivedType.IsGenericTypeDefinition) 223baseType, entry.DerivedType, SR.Polymorphism_OpenGeneric_Reason_NotAssignable); 230entry.DerivedType, baseTypeDefinition, baseTypeArgs, 234baseType, entry.DerivedType, failureReason!);
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (1)
64derivedType = DerivedType;