4 writes to TypeDiscriminator
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (4)
20
TypeDiscriminator
= null;
31
TypeDiscriminator
= typeDiscriminator;
42
TypeDiscriminator
= typeDiscriminator;
49
TypeDiscriminator
= typeDiscriminator;
5 references to TypeDiscriminator
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
376
if (derivedType.
TypeDiscriminator
is { } discriminator)
System.Text.Json (4)
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
111
bool containsTypesWithoutDiscriminator = derivedTypes.Exists(static derivedTypes => derivedTypes.
TypeDiscriminator
is null);
119
Debug.Assert(derivedType.
TypeDiscriminator
is null or int or string);
122
if (derivedType.
TypeDiscriminator
is { } discriminatorValue)
System\Text\Json\Serialization\Metadata\JsonDerivedType.cs (1)
65
typeDiscriminator =
TypeDiscriminator
;