Skip to content

Commit ff21619

Browse files
authored
Fix (#155)
1 parent 828e314 commit ff21619

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/code/common/ApiDiagnostic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ _ when nameof(Url).Equals(value, StringComparison.OrdinalIgnoreCase) => Url,
355355

356356
public sealed record SamplingSettings
357357
{
358-
public int? Percentage { get; init; }
358+
public double? Percentage { get; init; }
359359

360360
public SamplingTypeOption? SamplingType { get; init; }
361361

@@ -367,7 +367,7 @@ public JsonObject Serialize() =>
367367
public static SamplingSettings Deserialize(JsonObject jsonObject) =>
368368
new()
369369
{
370-
Percentage = jsonObject.TryGetIntProperty("percentage"),
370+
Percentage = jsonObject.TryGetDoubleProperty("percentage"),
371371
SamplingType = jsonObject.TryGetProperty("samplingType")
372372
.Map(SamplingTypeOption.Deserialize)
373373
};

0 commit comments

Comments
 (0)