Skip to content

Commit 298b584

Browse files
committed
Review feedback
1 parent b3d37a7 commit 298b584

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Weaviate.Client/Serialization/PropertyBag.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public PropertyBag(IDictionary<string, object?> properties)
4545
return value switch
4646
{
4747
int i => i,
48-
long l => (int)l,
49-
double d => (int)d,
48+
long l => Convert.ToInt32(l),
49+
double d => Convert.ToInt32(d),
5050
_ => Convert.ToInt32(value),
5151
};
5252
}
@@ -63,7 +63,7 @@ public PropertyBag(IDictionary<string, object?> properties)
6363
{
6464
long l => l,
6565
int i => i,
66-
double d => (long)d,
66+
double d => Convert.ToInt64(d),
6767
_ => Convert.ToInt64(value),
6868
};
6969
}

src/Weaviate.Client/Validation/ValidationResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public string GetDetailedMessage()
4545
lines.Add($"Validation failed with {Errors.Count} error(s):");
4646
foreach (var error in Errors)
4747
{
48-
lines.Add($" {error.PropertyName}: {error.Message}");
48+
lines.Add($" [ERROR] {error.PropertyName}: {error.Message}");
4949
if (
5050
!string.IsNullOrEmpty(error.ExpectedType)
5151
&& !string.IsNullOrEmpty(error.ActualType)
@@ -63,7 +63,7 @@ public string GetDetailedMessage()
6363
lines.Add($"{Warnings.Count} warning(s):");
6464
foreach (var warning in Warnings)
6565
{
66-
lines.Add($" ⚠️ {warning.PropertyName}: {warning.Message}");
66+
lines.Add($" [WARNING] {warning.PropertyName}: {warning.Message}");
6767
}
6868
}
6969

0 commit comments

Comments
 (0)