1 write to IsSetNullable
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
489
propertyInfo.
IsSetNullable
= nullabilityInfo.WriteState is not NullabilityState.NotNull;
8 references to IsSetNullable
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
453
if (propertyInfo.PropertyType != typeof(object) && (propertyInfo.IsGetNullable || propertyInfo.
IsSetNullable
))
System.Text.Json (7)
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
143
parentPolymorphicTypeIsNonNullable: propertyInfo is { IsGetNullable: false,
IsSetNullable
: false },
364
? propertyInfo.IsGetNullable || propertyInfo.
IsSetNullable
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (2)
73
/// This setting is in sync with the associated <see cref="JsonPropertyInfo.
IsSetNullable
"/> property.
75
public bool IsNullable => MatchingProperty.
IsSetNullable
;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (3)
296
if (!
IsSetNullable
&& Options.RespectNullableAnnotations)
319
if (fastValue is null && !
IsSetNullable
&& Options.RespectNullableAnnotations)
348
if (value is null && !
IsSetNullable
&& Options.RespectNullableAnnotations)