Skip to content

Commit 32ea3b6

Browse files
Fixed exception message expression (#1609)
to properly list failed property names
1 parent e2b0155 commit 32ea3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Confluent.SchemaRegistry.Serdes.Json/JsonSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public async Task<byte[]> SerializeAsync(T value, SerializationContext context)
144144
var validationResult = validator.Validate(serializedString, this.schema);
145145
if (validationResult.Count > 0)
146146
{
147-
throw new InvalidDataException("Schema validation failed for properties: [" + string.Join(", ", validationResult.Select(r => r.Path) + "]"));
147+
throw new InvalidDataException("Schema validation failed for properties: [" + string.Join(", ", validationResult.Select(r => r.Path)) + "]");
148148
}
149149

150150
try

0 commit comments

Comments
 (0)