35 references to 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
,
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)
21
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
31
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (2)
26
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
41
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)
22
if (options?.NumberHandling is not null and not JsonNumberHandling.
Strict
)
32
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
)