39 references to Strict
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentServiceTestsBase.cs (3)
89
jsonOptions.SerializerOptions.NumberHandling = System.Text.Json.Serialization.JsonNumberHandling.
Strict
;
134
defaultJsonOptions.SerializerOptions.NumberHandling = System.Text.Json.Serialization.JsonNumberHandling.
Strict
;
171
options.SerializerOptions.NumberHandling = System.Text.Json.Serialization.JsonNumberHandling.
Strict
;
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
773
if (ctx.TypeInfo.NumberHandling is not JsonNumberHandling.
Strict
&& schema["type"] is JsonArray typeArray)
Microsoft.ML.SearchSpace.Tests (1)
SearchSpaceTest.cs (1)
28
NumberHandling = JsonNumberHandling.
Strict
,
Sample (1)
Program.cs (1)
19
options.SerializerOptions.NumberHandling = JsonNumberHandling.
Strict
;
System.Text.Json (33)
System\Text\Json\Serialization\Converters\Value\ByteConverter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\DecimalConverter.cs (2)
18
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
28
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (2)
24
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
39
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (2)
23
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
38
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\Int16Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\Int32Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\Int64Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\SByteConverter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\SingleConverter.cs (2)
20
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
30
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (2)
23
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
38
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\UInt16Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\UInt32Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\UInt64Converter.cs (2)
19
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
29
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
87
JsonNumberHandling.
Strict
|
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (4)
570
if (declaringTypeNumberHandling != null && declaringTypeNumberHandling != JsonNumberHandling.
Strict
&& !EffectiveConverter.IsInternalConverter)
584
if (!EffectiveNumberHandling.HasValue && Options.NumberHandling != JsonNumberHandling.
Strict
)
605
if (!handling.HasValue && Options.NumberHandling != JsonNumberHandling.
Strict
)
612
else if (NumberHandling.HasValue && NumberHandling != JsonNumberHandling.
Strict
)