4 writes to DerivedType
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (4)
19
DerivedType
= derivedType;
30
DerivedType
= derivedType;
41
DerivedType
= derivedType;
48
DerivedType
= derivedType;
12 references to DerivedType
Microsoft.AspNetCore.OpenApi (4)
Extensions\JsonNodeSchemaExtensions.cs (3)
449
var 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)
537
var derivedJsonTypeInfo = _jsonSerializerOptions.GetTypeInfo(derivedType.
DerivedType
);
System.Text.Json (8)
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
125
JsonTypeInfo derivedTypeInfo = typeInfo.Options.GetTypeInfoInternal(derivedType.
DerivedType
);
510
if (derivedType.
DerivedType
== typeInfo.Type)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (5)
209
if (entry.
DerivedType
is null || !entry.
DerivedType
.IsGenericTypeDefinition)
223
baseType, entry.
DerivedType
, SR.Polymorphism_OpenGeneric_Reason_NotAssignable);
230
entry.
DerivedType
, baseTypeDefinition, baseTypeArgs,
234
baseType, entry.
DerivedType
, failureReason!);
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (1)
64
derivedType =
DerivedType
;